BloombergLP::bdlb::VariantImp_NoAllocatorBase::VariantImp_NoAllocatorBase

Create a non-allocator base holding a copy of value.

Synopsis

Declared in <bdlb_variant.h>

template<class TYPE>
VariantImp_NoAllocatorBase(
    int type,
    TYPE const& value,
    bsl::false_type tag);

Description

Create a VariantImp_NoAllocatorBase holding a copy of the specified value of the (template parameter) TYPE, with the specified type indicating the type of the object that the variant will initially hold.

Parameters

NameDescription
typetype index of the initially held alternative
valuevalue assigned to or stored in this variant
tagunused overload-resolution tag