[#bsl-optional-072-2constructor-080]
= xref:bsl.adoc[bsl]::xref:bsl/optional-072.adoc[optional]::optional
:relfileprefix: ../../
:mrdocs:

Create a disengaged `optional` object if the specified `original` object is disengaged, and an `optional` object with the value of `original&period;value()` moved&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ANY&lowbar;TYPE&gt;
constexpr
optional(xref:BloombergLP/bslmf/MovableRef_Deduced.adoc[BloombergLP::bslmf::MovableRef&lowbar;Deduced&lt;optional&lt;t&lowbar;ANY&lowbar;TYPE&gt;&gt;] original);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| source optional used to initialize this object
|===


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