Peter Alexander wrote:
All I would like to see is some way to generically point to a single element in a range. I don't actually care about whether these iterators/cursors can be incremented or not because ranges are more useful for iteration. We just need some way to point to single elements (and as I have said before, pointers are no good in non-arraylike containers).
I don't understand this. If all you need is access to one individual element, why are pointers inadequate for non-arraylike containers? Knowledge of the container's topology is needed only if moving the iterator around is needed.
Andrei