BloombergLP::bdlb::Variant3::operator=

Assignment operators

Synopses

Declared in <bdlb_variant.h>

Assign the type and value of rhs to this object.

Variant3<A1, A2, A3>&
operator=(Variant3 const& rhs);
» more...

Assign the type and value of rhs to this object.

VariantImp<TYPES>&
operator=(VariantImp const& rhs);
» more...

Assign the type and value of rhs to this object.

Variant3<A1, A2, A3>&
operator=(bslmf::MovableRef<Variant3> rhs);
» more...

Assign the type and value of rhs to this object.

VariantImp<TYPES>&
operator=(bslmf::MovableRef<VariantImp> rhs);
» more...

Assign the specified TYPE value to this object.

template<class TYPE>
Variant3<A1, A2, A3>&
operator=(TYPE const& value);
» more...

Assign the specified TYPE value to this object.

template<class TYPE>
Variant3<A1, A2, A3>&
operator=(TYPE&& value)
requires !bsl::is_same<SelfType,
                      typename bsl::remove_cvref<TYPE>::type>::value;
» more...

Return Value

reference providing modifiable access to this object

Parameters

NameDescription
rhsright-hand operand
valuevalue assigned to or stored in this variant