[#BloombergLP-bdlb-Variant13-operator_assign-0f8] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant13.adoc[Variant13]::operator= :relfileprefix: ../../../ :mrdocs: Assignment operators == Synopses Declared in `<bdlb_variant.h>` Assign the type and value of `rhs` to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/Variant13.adoc[Variant13<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>]& xref:BloombergLP/bdlb/Variant13/operator_assign-0f0.adoc[operator=](xref:BloombergLP/bdlb/Variant13.adoc[Variant13] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/Variant13/operator_assign-0f0.adoc[_» more..._]# Assign the type and value of `rhs` to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp<TYPES>]& xref:BloombergLP/bdlb/VariantImp/operator_assign-00.adoc[operator=](xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/VariantImp/operator_assign-00.adoc[_» more..._]# Assign the type and value of `rhs` to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/Variant13.adoc[Variant13<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>]& xref:BloombergLP/bdlb/Variant13/operator_assign-07.adoc[operator=](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Variant13>] rhs); ---- [.small]#xref:BloombergLP/bdlb/Variant13/operator_assign-07.adoc[_» more..._]# Assign the type and value of `rhs` to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp<TYPES>]& xref:BloombergLP/bdlb/VariantImp/operator_assign-02.adoc[operator=](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<VariantImp>] rhs); ---- [.small]#xref:BloombergLP/bdlb/VariantImp/operator_assign-02.adoc[_» more..._]# Assign the specified `TYPE` `value` to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> xref:BloombergLP/bdlb/Variant13.adoc[Variant13<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>]& xref:BloombergLP/bdlb/Variant13/operator_assign-05.adoc[operator=](TYPE const& value); ---- [.small]#xref:BloombergLP/bdlb/Variant13/operator_assign-05.adoc[_» more..._]# Assign the specified `TYPE` `value` to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> xref:BloombergLP/bdlb/Variant13.adoc[Variant13<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>]& xref:BloombergLP/bdlb/Variant13/operator_assign-06.adoc[operator=](TYPE&& value) requires !bsl::is_same<SelfType, typename bsl::remove_cvref<TYPE>::type>::value; ---- [.small]#xref:BloombergLP/bdlb/Variant13/operator_assign-06.adoc[_» more..._]# == Return Value reference providing modifiable access to this object == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | right‐hand operand | *value* | value assigned to or stored in this variant |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#