[#bsl-variant-2constructor-015] = xref:bsl.adoc[bsl]::xref:bsl/variant.adoc[variant]::variant :relfileprefix: ../../ :mrdocs: Create a `variant` object holding the 0th alternative, which is value‐initialized. If this `variant` is allocator‐aware, the specified `allocator` is used to supply memory. This constructor participates in overload resolution only if the 0th alternative is default constructible. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_FIRST = t_HEAD> requires std::is_default_constructible<t_FIRST>::value variant( std::allocator_arg_t, xref:bsl/variant/allocator_type.adoc[allocator_type] allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#