[#BloombergLP-bslstl-Optional_Base-05-2constructor-0a8]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base]::Optional&lowbar;Base
:relfileprefix: ../../../
:mrdocs:

Create an `Optional&lowbar;Base` object having the same value as the specified `original` object by moving the contents of `original` to the newly&hyphen;created object&period; The allocator associated with `original` is propagated for use in the newly&hyphen;created object&period; `original` is left in a valid, but unspecified state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Optional&lowbar;Base(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;Optional&lowbar;Base&gt;] original) noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Exception specification

This function is potentially-throwing unless `bsl&colon;&colon;is&lowbar;nothrow&lowbar;move&lowbar;constructible&lt;t&lowbar;TYPE&gt;&colon;&colon;value`.


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