[#BloombergLP-bslstl-Optional_Base-08-2constructor-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-08.adoc[Optional&lowbar;Base&lt;t&lowbar;TYPE, false&gt;]::Optional&lowbar;Base
:relfileprefix: ../../../
:mrdocs:

Create an `Optional&lowbar;Base` by moving from a `std&colon;&colon;optional`&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 allocatorArg,
    xref:BloombergLP/bslstl/Optional_Base-08/AllocType.adoc[AllocType] allocator,
    xref:BloombergLP/bslstl/Optional_MoveConstructFromStdOptional.adoc[BloombergLP::bslstl::Optional&lowbar;MoveConstructFromStdOptional] tag,
    std::optional&lt;t&lowbar;ANY&lowbar;TYPE&gt;&& original);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *allocatorArg*
| tag selecting the allocator&hyphen;extended constructor
| *allocator*
| allocator used to supply memory
| *tag*
| tag selecting this constructor overload
| *original*
| source optional used to initialize this object
|===


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