Implemented P0084R2 (Emplace Return Type)

This commit is contained in:
Ion Gaztañaga
2016-08-29 16:53:44 +02:00
parent 9f9fdeaa9a
commit 0617d0e538
8 changed files with 79 additions and 41 deletions

View File

@@ -677,6 +677,8 @@ public:
//! @brief Inserts a Value constructed with
//! \c std::forward<Args>(args)... in the end of the container.
//!
//! @return A reference to the created object.
//!
//! @param args The arguments of the constructor of the new element which will be created at the end of the container.
//!
//! @par Throws
@@ -685,7 +687,7 @@ public:
//! @par Complexity
//! Constant O(1).
template<class ...Args>
void emplace_back(Args &&...args);
reference emplace_back(Args &&...args);
//! @pre
//! @li \c p must be a valid iterator of \c *this in range <tt>[begin(), end()]</tt>