[#BloombergLP-bslstl-Variant_Base-2constructor-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_Base.adoc[Variant_Base]::Variant_Base :relfileprefix: ../../../ :mrdocs: Create a `Variant_Base` object whose index is the specified `index` without constructing an alternative object. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Variant_Base( xref:BloombergLP/bslstl/Variant_ConstructFromStdTag.adoc[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 [cols="1,4"] |=== | Name| Description | *fromStdTag* | tag selecting this indexless construction overload | *index* | index of the alternative that will (later) be created |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#