Use const auto & in range-for loops