template< class... Args >
constexpr reference emplace_back( Args&&... args );
Appends a new element to the end of the container. Typically, the element is constructed using placement-new to construct the element in-place at the location provided by the container. The arguments args... are forwarded to the constructor as std::forward<Args>(args)....
No iterators or references are invalidated, except end()
, which is invalidated if the insertion occurs.
T
must meet the requirements of EmplaceConstructible. [edit] Return value
back()
, i.e. a reference to the inserted element.
Constant.
[edit] ExceptionsIf an exception is thrown for any reason, these functions have no effect (strong exception safety guarantee).
[edit] ExamplePossible output:
fauna = [("ð", "ð"), ("ð", "ð")] std::bad_alloc fauna = [("ð", "ð"), ("ð", "ð")][edit] See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4