Answer the question
In order to leave comments, you need to log in
What does incrementing a constant iterator do?
I am writing my own random access iterator (the task is) for the list. I can not understand whether it makes sense to prescribe an increment of a constant iterator. As I understand it, a constant iterator does not change what it points to, but when an iterator (not a constant one) is increased, it simply moves further through the elements of the list. So, does a constant iterator move further down the list when incrementing? Or you just initialize it once and you can't move it anywhere?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question