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

Create a `variant` object holding a copy of `original`&apos;s alternative&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
variant(xref:bsl/variant.adoc[variant] const& original) = default;
----

== Description

Create a `variant` object holding the same alternative (if any) as the specified `original` object&period; If this `variant` is allocator&hyphen;aware, the currently installed default allocator is used to supply memory&period; If the `original` object is not valueless by exception&apos;, the contained value is copy&hyphen;constructed from the contained value of `original`&period; This constructor is deleted unless all alternatives are copy constructible&period; For simplicity of implementation, this method differs from the standard in the following ways&colon; &ast; conditional triviality is not implemented &ast; `constexpr` is not implemented &ast; `noexcept` specification is not implemented

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| variant to copy
|===


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