BloombergLP::bdlb::VariantImp_NoAllocatorBase::VariantImp_NoAllocatorBase

Constructors

Synopses

Declared in <bdlb_variant.h>

Create a VariantImp_NoAllocatorBase with the specified type (allocator argument is ignored).

VariantImp_NoAllocatorBase(
    int type,
    bslma::Allocator* allocator);
» more...

Create a VariantImp_NoAllocatorBase with the specified type indicating the type of the object that the variant will initially hold.

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

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

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

Parameters

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