Our coding guidelines prefer const_iterator, because they are a little faster compared to a normal iterator. It seems like the compiler optimizes t
const_iterator
iterator
Our coding guidelines say prefer const_iterator
Have a look at this article by Scott Meyers here. He explains why one should prefer iterator over const_iterator.