Difference between a const iterator and const_iterator
Well, I had a question in my book asking this. I was wondering if this is right?:
"You would use an iterator that is const when you will just be reading/writing from ONE element in a container. You would use const_iterator when you will just be READING from one or more elements in a container. The difference between them is the fact a const iterator's location cannot be changed where as with a const_iterator the value of the location cannot be changed."
Am I on right track here? (I hope you don't mind me asking all these questions here, but I want to make sure I'm getting all this) :) Thanks.