BloombergLP::bdlb::VariantImp_AllocatorBase::VariantImp_AllocatorBase

Constructors

Synopses

Declared in <bdlb_variant.h>

Create a VariantImp_AllocatorBase with the specified type and basicAllocator.

VariantImp_AllocatorBase(
    int type,
    bslma::Allocator* basicAllocator);
» more...

Create an allocator-aware base with the given type index.

VariantImp_AllocatorBase(
    int type,
    bslma::Allocator* basicAllocator,
    bsl::true_type tag);
» more...

Create a VariantImp_AllocatorBase with the specified type and default-constructed TYPE.

template<class TYPE>
VariantImp_AllocatorBase(
    int type,
    TYPE const& value,
    bsl::false_type tag);
» more...

Parameters

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