C++11 container optimization