[#bsl-variant-2constructor-06] = xref:bsl.adoc[bsl]::xref:bsl/variant.adoc[variant]::variant :relfileprefix: ../../ :mrdocs: Create a `variant` object holding a value‐initialized 0th alternative. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_FIRST_ALT = t_HEAD> requires std::is_default_constructible<t_FIRST_ALT>::value variant(); ---- == Description If this `variant` is allocator‐aware, the currently installed default allocator is used to supply memory. This constructor participates in overload resolution only if the 0th alternative is default constructible. For simplicity of implementation, this method differs from the standard in the following ways: * `constexpr` is not implemented * `noexcept` specification is not implemented [.small]#Created with https://www.mrdocs.com[MrDocs]#