[#bsl-stack-05-emplace]
= xref:bsl.adoc[bsl]::xref:bsl/stack-05.adoc[stack]::emplace
:relfileprefix: ../../
:mrdocs:

Push onto this stack a newly created `value&lowbar;type` object constructed by forwarding `get&lowbar;allocator()` (if required) and the specified (variable number of) `args` to the corresponding constructor of `value&lowbar;type`&period; Return a reference providing modifiable access to the inserted element&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; Args&gt;
xref:bsl/stack-05/reference.adoc[stack&lt;VALUE, CONTAINER&gt;::reference]
emplace(Args&&&period;&period;&period; args);
----


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