Use a const_iterator.