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

If the specified `original` contains a value, create an `Optional&lowbar;Base` object whose contained value is initialized by moving from `&ast;original` and converting to `t&lowbar;TYPE`&period; Otherwise, create a disengaged `Optional&lowbar;Base`&period; Use the specified `allocator` to supply memory&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"]
----
template&lt;class t&lowbar;ANY&lowbar;TYPE&gt;
Optional&lowbar;Base(
    std::allocator&lowbar;arg&lowbar;t,
    xref:BloombergLP/bslstl/Optional_Base-05/allocator_type.adoc[allocator&lowbar;type] allocator,
    xref:BloombergLP/bslstl/Optional_MoveConstructFromOtherOptional.adoc[BloombergLP::bslstl::Optional&lowbar;MoveConstructFromOtherOptional],
    xref:BloombergLP/bslmf/MovableRef_Deduced.adoc[BloombergLP::bslmf::MovableRef&lowbar;Deduced&lt;Optional&lowbar;Base&lt;t&lowbar;ANY&lowbar;TYPE&gt;&gt;] original);
----


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