[#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. == Synopsis Declared in `<bslstl_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> xref:bsl/queue-0a5/reference.adoc[queue<VALUE, CONTAINER>::reference] emplace(Args&&... args); ---- == Description Push onto this queue a newly created `value_type` object constructed by forwarding `get_allocator()` (if required) and the specified (variable number of) `args` to the corresponding constructor of `value_type`. Return a reference providing modifiable access to the inserted element. == Return Value modifiable reference to the inserted element == Parameters [cols="1,4"] |=== | Name| Description | *args* | constructor arguments forwarded to `value_type` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#