C++11 style & optimized