BloombergLP::bdlb::Variant4::assign

Assign the specified TYPE value to this object.

Synopses

Declared in <bdlb_variant.h>

Assign the specified TYPE value to this object.

template<class TYPE>
VariantImp<TYPES>&
assign(TYPE const& value);
» more...

Assign the specified TYPE value to this object.

template<class TYPE>
VariantImp<TYPES>&
assign(TYPE&& value);
» more...

Return Value

reference providing modifiable access to this object

Parameters

NameDescription
valuevalue assigned to or stored in this variant