4 ms·
Basically correct, except std::sort uses assignment, not copy construction. It's also likely that the optimizer will have GetABunchOfThings construct its resul
by jongraehl 15y ago
Basically correct, except std::sort uses assignment, not copy construction.
It's also likely that the optimizer will have GetABunchOfThings construct its result once in the caller's "things". Lambdas are C++0x, so maybe move constructors (another C++0x feature) will be employed instead.