Use C++11 style for loop