3 ms·
The bit about special 'fast' handling of relocatable types should be obviated by r-value references and move constructors in C++11/14, right? I.e. if we want f
by cliff_r 12y ago
The bit about special 'fast' handling of relocatable types should be obviated by r-value references and move constructors in C++11/14, right?
I.e. if we want fast push_back() behavior, we can use a compiler that knows to construct the element directly inside the vector's backing store rather that creating a temporary object and copying it into the vector.
- marksamman 12y agoemplace_back was added in C++11 which does just that: http://en.cppreference.com/w/cpp/container/vector/emplace_back http://en.cppreference.com/w/cpp/container/vector/emplace_ba...