[#BloombergLP-bdlb-Variant16-operator_assign-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant16.adoc[Variant16]::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/Variant16.adoc[Variant16<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16>]& xref:BloombergLP/bdlb/Variant16/operator_assign-09.adoc[operator=](xref:BloombergLP/bdlb/Variant16.adoc[Variant16] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-09.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/Variant16.adoc[Variant16<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16>]& xref:BloombergLP/bdlb/Variant16/operator_assign-05.adoc[operator=](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Variant16>] rhs); ---- [.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-05.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/Variant16.adoc[Variant16<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16>]& xref:BloombergLP/bdlb/Variant16/operator_assign-0e.adoc[operator=](TYPE const& value); ---- [.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-0e.adoc[_» more..._]# Assign the specified `TYPE` `value` to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> xref:BloombergLP/bdlb/Variant16.adoc[Variant16<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16>]& xref:BloombergLP/bdlb/Variant16/operator_assign-0d.adoc[operator=](TYPE&& value) requires !bsl::is_same<SelfType, typename bsl::remove_cvref<TYPE>::type>::value; ---- [.small]#xref:BloombergLP/bdlb/Variant16/operator_assign-0d.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]#