|
Boost : |
From: Alex Chovanec (achovane_at_[hidden])
Date: 2004-08-06 10:30:53
Believe it or not, deferred_iterator was the other name that I was
considering, but now I see that it's already in the library as
counting_iterator.
Alex
"Rob Stewart" <stewart_at_[hidden]> wrote in message
news:200408061508.i76F8g120778_at_entwistle.systems.susq.com...
> From: "Alex Chovanec" <achovane_at_[hidden]>
> >
> > When you dereference an instance of the adapted iterator type Iter, you
get
> > a const reference to its base iterator of type Base. So instead of
> > delegating the dereference operation to its base and returning the
result,
> > the iterator adaptor simply returns its base. Since it doesn't
dereference
> > its base, I would probably name it "lazy_iterator", or something like
that.
>
> The idea is intriguing, but the iterator isn't lazy, it just
> doesn't dereference ("lazy" suggests that it will do the work on
> demand, not immediately). A better name would be
> "deferred_iterator" or "iterator_iterator."
>
> --
> Rob Stewart stewart_at_[hidden]
> Software Engineer http://www.sig.com
> Susquehanna International Group, LLP using std::disclaimer;
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk