I wanted to express that an iterator is const (i.e you cannot increment or decrement it) but that the thing it yields is non-const:
iterator const it = foo.begin();
it++; // error
*it = ...; // not an error
If iterator is a pointer, I can say:
pointer // the iterator
pointee // the thing it yields
But if it is not a pointer, I'm not sure. I thought about using container for the "pointee" substitute, but a iterator is not tied to a container at all. For example an input iterator can be tied to a file or to STDIN. Does the following work and is used by others?
iterator // the iterator
iteratoo // the thing it yields
I'm glad for any guidance!
Is "the value" too obvious (or wrong)? After all, what you want out of the iterator is the value. If you are referring to the set of values that you are iterating over then I think "sequence" is not a bad choice.
Posting this here since we discussed this in the chat.
Use the victor/victim setup.
Iterator / Iteratim
Or you could use Iteratee.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With