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

Assignment operators

== Synopses

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

Assign the type and value of `rhs` to this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/Variant16.adoc[Variant16&lt;A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16&gt;]&
xref:BloombergLP/bdlb/Variant16/operator_assign-09.adoc[operator&equals;](xref:BloombergLP/bdlb/Variant16.adoc[Variant16] const& rhs);
----

[.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-09.adoc[_» more&period;&period;&period;_]#

Assign the type and value of `rhs` to this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp&lt;TYPES&gt;]&
xref:BloombergLP/bdlb/VariantImp/operator_assign-00.adoc[operator&equals;](xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp] const& rhs);
----

[.small]#xref:BloombergLP/bdlb/VariantImp/operator_assign-00.adoc[_» more&period;&period;&period;_]#

Assign the type and value of `rhs` to this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/Variant16.adoc[Variant16&lt;A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16&gt;]&
xref:BloombergLP/bdlb/Variant16/operator_assign-05.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;Variant16&gt;] rhs);
----

[.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-05.adoc[_» more&period;&period;&period;_]#

Assign the type and value of `rhs` to this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp&lt;TYPES&gt;]&
xref:BloombergLP/bdlb/VariantImp/operator_assign-02.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;VariantImp&gt;] rhs);
----

[.small]#xref:BloombergLP/bdlb/VariantImp/operator_assign-02.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
xref:BloombergLP/bdlb/Variant16.adoc[Variant16&lt;A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16&gt;]&
xref:BloombergLP/bdlb/Variant16/operator_assign-0e.adoc[operator&equals;](TYPE const& value);
----

[.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-0e.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
xref:BloombergLP/bdlb/Variant16.adoc[Variant16&lt;A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16&gt;]&
xref:BloombergLP/bdlb/Variant16/operator_assign-0d.adoc[operator&equals;](TYPE&& value)
requires !bsl&colon;&colon;is&lowbar;same&lt;SelfType,
                      typename bsl&colon;&colon;remove&lowbar;cvref&lt;TYPE&gt;&colon;&colon;type&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-0d.adoc[_» more&period;&period;&period;_]#

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| right&hyphen;hand operand
| *value*
| value assigned to or stored in this variant
|===


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