[#bsl-variant-2constructor-011] = xref:bsl.adoc[bsl]::xref:bsl/variant.adoc[variant]::variant :relfileprefix: ../../ :mrdocs: Create a `variant` object from a `std::variant` `original`. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_STD_VARIANT> explicit variant(t_STD_VARIANT&& original); ---- == Description Create a `variant` object holding the same alternative (if any) held by the specified `original`. If this `variant` is allocator‐aware, the specified `allocator` is used to supply memory. If `original` is not valueless by exception, the contained value is copy/move‐constructed from the contained value of `original`. This constructor participates in overload resolution only if all alternatives are copy/move‐constructible. == Parameters [cols="1,4"] |=== | Name| Description | *original* | `std::variant` to construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#