Emplace a newly constructed element onto the back of this queue.
Declared in <bslstl_queue.h>
template<class... Args>
queue<VALUE, CONTAINER>::reference
emplace(Args&&... args);
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.
modifiable reference to the inserted element
| Name | Description |
|---|---|
| args | constructor arguments forwarded to value_type |