[#BloombergLP-bdlb-Variant18-operator_assign-0a6]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant18.adoc[Variant18]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

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

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

== Description

The value currently held by this variant (if any) is destroyed if that value&apos;s type is not the same as the type held by the `rhs` object&period; The contents of `rhs` are either move&hyphen;inserted into or move&hyphen;assigned to this object with `rhs` left in a valid but unspecified state&period;

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| right&hyphen;hand operand
|===


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