Use range-based for loop.