[#BloombergLP-bdlb-Variant9-operator_assign-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant9.adoc[Variant9]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assign the specified `TYPE` `value` to this object&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;variant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
xref:BloombergLP/bdlb/Variant9.adoc[Variant9&lt;A1, A2, A3, A4, A5, A6, A7, A8, A9&gt;]&
operator&equals;(TYPE const& value);
----

== Description

The value currently held by this variant (if any) is destroyed if that value&apos;s type is not the same as `TYPE`&period; `TYPE` must be the same as one of the types that this variant can hold&period;

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value assigned to or stored in this variant
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
