C++ / Why Iterators Got It All Wrong
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 5 23:57:25 PDT 2017
On Monday, 4 September 2017 at 04:29:36 UTC, Ilya wrote:
> Maybe I should call it cursors or generic pointers instead of
> iterators.
Well, «C++ iterators» are table pointer abstractions, so you need
a pair.
An «iterator» would be a possibly heavy object that is used for
traversing a possibly complex and heterogenous data-structure
without exposing any notion of size or end a-priori (e.g. before
it arrives at the end, if there is an end).
More information about the Digitalmars-d
mailing list