HNHacker News
TopNewBestAskShowJobs

cliff_r

5 karma · joined August 30, 2014

submissionscomments
cliff_r··on Facebook's std::vector optimization
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.