[#BloombergLP-bslstl-Optional_DataImp-emplace-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_DataImp.adoc[Optional&lowbar;DataImp]::emplace
:relfileprefix: ../../../
:mrdocs:

`emplace` overloads

== Synopses

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

Create an object of `StoredType` in `d&lowbar;buffer` using the specified `allocator` and `args` and return a reference providing modifiable access to the underlying `t&lowbar;TYPE` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; t&lowbar;ARGS&gt;
t&lowbar;TYPE&
xref:BloombergLP/bslstl/Optional_DataImp/emplace-07.adoc[emplace](
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator,
    t&lowbar;ARGS&&&period;&period;&period; args);
----

[.small]#xref:BloombergLP/bslstl/Optional_DataImp/emplace-07.adoc[_» more&period;&period;&period;_]#

Create an object of `StoredType` in `d&lowbar;buffer` using the specified `allocator`, `initializer&lowbar;list`, and `args`, and return a reference providing modifiable access to the underlying `t&lowbar;TYPE` object&period;


[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;
t&lowbar;TYPE&
xref:BloombergLP/bslstl/Optional_DataImp/emplace-03.adoc[emplace](
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator,
    std::initializer&lowbar;list&lt;t&lowbar;INIT&lowbar;LIST&lowbar;TYPE&gt; initializer&lowbar;list,
    t&lowbar;ARGS&&&period;&period;&period; args);
----

[.small]#xref:BloombergLP/bslstl/Optional_DataImp/emplace-03.adoc[_» more&period;&period;&period;_]#


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