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

Name

Description

fromStdTag

tag selecting this indexless construction overload

index

index of the alternative that will (later) be created

Created with MrDocs