[#BloombergLP-bdlb-Variant15-operator_assign-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant15.adoc[Variant15]::operator= :relfileprefix: ../../../ :mrdocs: Assign to this object the specified `value` of template parameter `TYPE`, 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 `TYPE`. `TYPE` must be the same as one of the types that this variant can hold. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> xref:BloombergLP/bdlb/Variant15.adoc[Variant15<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15>]& operator=(TYPE const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#