Emplace a newly constructed element onto the back of this queue.

Synopsis

Declared in <bslstl_queue.h>

template<class... Args>
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

Name

Description

args

constructor arguments forwarded to value_type

Created with MrDocs