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
Name |
Description |
allocatorArg |
tag selecting the allocator‐extended overload |
allocator |
allocator used to supply memory |
fromStdTag |
tag selecting this indexless construction overload |
index |
index of the alternative that will (later) be created |
Created with MrDocs