Replace const_iterator with auto