BloombergLP::bdlb::VariantImp::createInPlace

Create an instance of template parameter TYPE in this variant object with up to 14 parameters using the allocator currently held by this variant to supply memory, and return a reference providing modifiable access to the created instance. This method first destroys the current value held by this variant (even if TYPE is the same as the type currently held). TYPE must be the same as one of the types that this variant can hold. Note the order of the template arguments was chosen so that TYPE must always be specified.

Synopsis

Declared in <bdlb_variant.h>

template<
    class TYPE,
    class... ARGS>
TYPE&
createInPlace(ARGS&&... arguments);