[#BloombergLP-bslstl-Optional_Base-05-2constructor-096]
= 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&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Optional&lowbar;Base(
    std::allocator&lowbar;arg&lowbar;t allocatorArg,
    xref:BloombergLP/bslstl/Optional_Base-05/allocator_type.adoc[allocator&lowbar;type] allocator,
    xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional&lowbar;Base] const& original);
----

== Description

If the specified `original` contains a value, create an `Optional&lowbar;Base` object whose contained value is initialized from `&ast;original`&period; Otherwise, create a disengaged `Optional&lowbar;Base` object&period; Use the specified `allocator` to supply memory&period;

== Parameters

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


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