BloombergLP::bdlb::VariantImp::operator=

Assign the type and value of rhs to this object.

Synopsis

Declared in <bdlb_variant.h>

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

Description

The value currently held by this variant (if any) is destroyed if that value's type is not the same as the type held by the rhs object.

Return Value

reference providing modifiable access to this object

Parameters

NameDescription
rhsright-hand operand