On Mon, Jan 18, 2016 at 6:47 PM, Matthew Woehlke <mwoehlke.fl...@gmail.com> wrote: > > Now, imagine a std::vector<std::string> where both > the vector and strings are very large. When the vector needs to resize, > it will have to do a deep copy of ever single item, allocating and > freeing lots of memory in the process.
Nitpicking: not really, because std::string::string(string &&) is noexcept, so it can be already optimized in a mass-move construction plus a mass-dtor. Sure, still way more expensive than it could be. -- Giuseppe D'Angelo
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development