BloombergLP::bslstl::Variant_Base::Variant_Base

Create a Variant_Base object whose index is the specified index without constructing an alternative object.

Synopsis

Declared in <bslstl_variant.h>

Variant_Base(
    std::allocator_arg_t allocatorArg,
    allocator_type allocator,
    Variant_ConstructFromStdTag fromStdTag,
    size_t index);

Description

Create a Variant_Base object whose index is the specified index without constructing an alternative object. If this Variant_Base is allocator-aware, the specified allocator is used to supply memory.

Parameters

NameDescription
allocatorArgtag selecting the allocator-extended overload
allocatorallocator used to supply memory
fromStdTagtag selecting this indexless construction overload
indexindex of the alternative that will (later) be created