Use C++11 range-based for loop.