Assign value converted to TYPE to this object.
Declared in <bdlb_variant.h>
template<
class TYPE,
class SOURCE_TYPE>
VariantImp<TYPES>&
assignTo(SOURCE_TYPE const& value);
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 and SOURCE_TYPE must be convertible to TYPE.
reference providing modifiable access to this object
| Name | Description |
|---|---|
| value | value assigned to or stored in this variant |