Template:cpp/container/emplace

Inserts a new element into the container directly before.

The element is constructed through std, which

The arguments are forwarded to the constructor as. may directly or indirectly refer to a value in the container.

Return value
Iterator pointing to the emplaced element.

Exceptions
{{#switch:{{{1|vector}}}
 * deque
 * list
 * vector=

Example
}}