BloombergLP::bdlb::VariantImp_AllocatorBase::VariantImp_AllocatorBase

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

Synopsis

Declared in <bdlb_variant.h>

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

Description

Create a VariantImp_AllocatorBase with the specified type indicating the type of the object that the variant will initially hold, and the specified basicAllocator to supply memory.

Parameters

NameDescription
typetype index of the initially held alternative
basicAllocatorallocator used to supply memory
tagunused overload-resolution tag