[#bsl-variant-2constructor-06]
= xref:bsl.adoc[bsl]::xref:bsl/variant.adoc[variant]::variant
:relfileprefix: ../../
:mrdocs:

Create a `variant` object holding a value&hyphen;initialized 0th alternative&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;FIRST&lowbar;ALT = t&lowbar;HEAD&gt;
requires std&colon;&colon;is&lowbar;default&lowbar;constructible&lt;t&lowbar;FIRST&lowbar;ALT&gt;&colon;&colon;value
variant();
----

== Description

If this `variant` is allocator&hyphen;aware, the currently installed default allocator is used to supply memory&period; This constructor participates in overload resolution only if the 0th alternative is default constructible&period; For simplicity of implementation, this method differs from the standard in the following ways&colon; &ast; `constexpr` is not implemented &ast; `noexcept` specification is not implemented


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