Use std::array and Range-based for loop