[#BloombergLP-bdlb-Variant6-operator_assign-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant6.adoc[Variant6]::operator= :relfileprefix: ../../../ :mrdocs: Assign to this object the type and value currently held by the specified `rhs` object, and return a reference providing modifiable access to this object. The value currently held by this variant (if any) is destroyed if that value's type is not the same as the type held by the `rhs` object. The contents of `rhs` are either move‐inserted into or move‐assigned to this object with `rhs` left in a valid but unspecified state. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/Variant6.adoc[Variant6<A1, A2, A3, A4, A5, A6>]& operator=(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Variant6>] rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#