[#BloombergLP-bslstl-Optional_Base-05-2constructor-09b]
= 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 whose contained value is initialized from the specified `il` and `args`&period; Use the specified `allocator` to supply memory&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;INIT&lowbar;LIST&lowbar;TYPE,
    class&period;&period;&period; t&lowbar;ARGS&gt;
Optional&lowbar;Base(
    std::allocator&lowbar;arg&lowbar;t,
    xref:BloombergLP/bslstl/Optional_Base-05/allocator_type.adoc[allocator&lowbar;type] allocator,
    std::in&lowbar;place&lowbar;t,
    std::initializer&lowbar;list&lt;t&lowbar;INIT&lowbar;LIST&lowbar;TYPE&gt; il,
    t&lowbar;ARGS&&&period;&period;&period; args);
----


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