Are iterators and ranges going to co-exist?
SeeWebsiteForEmail at erdani.org
Wed Jul 21 09:13:37 PDT 2010
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.
More information about the Digitalmars-d