I would like to express that the iterator is const (i.e. you cannot increase or decrease it), but what it gives is not a constant:
iterator const it = foo.begin();
it++;
*it = ...;
If iteratoris a pointer, I can say:
pointer // iterator
pointee // what it gives
But if it's not a pointer, I'm not sure. I was thinking of using a container"pointee" as a replacement, but the iterator is not bound to the container at all. For example, an input iterator may be bound to a file or to STDIN. Is the following work used and used by others?
iterator // iterator
iteratoo // what it gives
I am happy for any guidance!
source