Namespaces
Variants
Views
Actions

std::deque::emplace_front

From cppreference.com
< cpp‎ | container‎ | deque
Revision as of 20:29, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
template< class... Args >
void emplace_front( Args&&... args );
(since C++11)

Inserts a new element to the beginning of the container. The element is constructed in-place, i.e. no copy or move operations are performed. The constructor of the element is called with exactly the same arguments, as supplied to the function.


Contents

[edit] Parameters

args - arguments to forward to the constructor of the element

[edit] Return value

(none)

[edit] Complexity

Constant.

[edit] Exceptions

If an exception is thrown, this function has no effect (strong exception guarantee).

[edit] See also

inserts elements to the beginning
(public member function) [edit]