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