[#BloombergLP-bdlb-Variant8-operator_assign-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant8.adoc[Variant8]::operator= :relfileprefix: ../../../ :mrdocs: Assign the type and value of `rhs` to this object. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/Variant8.adoc[Variant8<A1, A2, A3, A4, A5, A6, A7, A8>]& operator=(xref:BloombergLP/bdlb/Variant8.adoc[Variant8] const& rhs); ---- == Description 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. == Return Value reference providing modifiable access to this object == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | right‐hand operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#