BloombergLP::bslstl::Variant_Base::operator=

Assignment operators

Synopses

Declared in <bslstl_variant.h>

If the specified rhs holds the same alternative type as this object, copy assign the contained value of rhs to the contained value of this object.

Variant_Base<t_HEAD, t_TAIL...>&
operator=(Variant_Base const& rhs);
» more...

If the specified rhs holds the same alternative type as this object, move assign the contained value of rhs to the contained value of this object.

Variant_Base<t_HEAD, t_TAIL...>&
operator=(BloombergLP::bslmf::MovableRef<Variant_Base> rhs);
» more...

Return Value

reference to this object

Parameters

NameDescription
rhsobject to assign from