Ember

emplace

Feb 17th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. template<class... _Valty>
  2.     void emplace_back(_Valty&&... _Val)
  3.     {   // insert by moving into element at end
  4.     if (this->_Mylast == this->_Myend)
  5.         _Reserve(1);
  6.     _Orphan_range(this->_Mylast, this->_Mylast);
  7.     this->_Getal().construct(this->_Mylast,
  8.         _STD forward<_Valty>(_Val)...);
  9.     ++this->_Mylast;
  10.     }
Add Comment
Please, Sign In to add comment