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(
    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 default allocator is used to supply memory.

Parameters

NameDescription
fromStdTagtag selecting this indexless construction overload
indexindex of the alternative that will (later) be created