c++11 optimizations