One of the C++0x improvements that will allow to write more efficient C++ code is the unique_ptr smart pointer (too bad, that it will not allow moving through memmove() like operations: the proposal didn't make into the draft).
What are other performance improvements in upcoming standard? Take following code for example:
vector<char *> v(10,"astring");
string concat = accumulate(v.begin(),v.end(), string(""));
The code will concatenate all the strings contained in vector v. The problem with this neat piece of code is that accumulate() copies things around, and does not use references. And the string() reallocates each time plus operator is called. The code has therefore poor performance compared to well optimized analogical C code.
Does C++0x provide tools to solve the problem and maybe others?