[#BloombergLP-bslstl-Variant_Union-0d-2constructor-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_Union-0d.adoc[Variant&lowbar;Union&lt;t&lowbar;HEAD, t&lowbar;TAIL&period;&period;&period;&gt;]::Variant&lowbar;Union
:relfileprefix: ../../../
:mrdocs:

Create a `Variant&lowbar;Union` object holding an object of type `t&lowbar;HEAD` direct&hyphen;initialized from the specified `args`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;variant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; t&lowbar;ARGS&gt;
Variant&lowbar;Union(
    bsl::in&lowbar;place&lowbar;index&lowbar;t&lt;0&gt; inPlaceIndex,
    t&lowbar;ARGS&&&period;&period;&period; args);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *inPlaceIndex*
| tag selecting the 0th alternative
| *args*
| arguments forwarded to the alternative&apos;s constructor
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
