Assign the type and value of rhs to this object.

Synopsis

Declared in <bdlb_variant.h>

Variant3<A1, A2, A3>&
operator=(Variant3 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

Name

Description

rhs

right‐hand operand

Created with MrDocs