[#bsl-queue-0a5-emplace]
= xref:bsl.adoc[bsl]::xref:bsl/queue-0a5.adoc[queue]::emplace
:relfileprefix: ../../
:mrdocs:

Emplace a newly constructed element onto the back of this queue&period;

== Synopsis

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

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

== Description

Push onto this queue 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;

== Return Value

modifiable reference to the inserted element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| constructor arguments forwarded to `value&lowbar;type`
|===


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