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);

Assign the specified TYPE value to this object.

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

Return Value

reference providing modifiable access to this object

Parameters

Name

Description

value

value assigned to or stored in this variant

Created with MrDocs