Create a Variant_Base object whose index is the specified index without constructing an alternative object.
Declared in <bslstl_variant.h>
Variant_Base(
std::allocator_arg_t allocatorArg,
allocator_type allocator,
Variant_ConstructFromStdTag fromStdTag,
size_t index);
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.
| 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 |