From: Thomas Witt (witt_at_[hidden])
Date: 2004-08-06 09:37:25
Alex Chovanec wrote:
> I realize that this isn't the best time for proposals, what with everyone
> trying to get the next release of boost out, but I have an idea for a new
> iterator adaptor which I'd like to propose.
> Consider an adapted iterator type Iter with base iterator type Base that has
> the following traits:
> typedef Base value_type;
> typedef const Base & reference;
> 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.
IIUC it's currently named counting_iterator. I.e. the main point of
counting_iterator isn't the counting but the non-dereferencing. Where
does your idea differ from counting_iterator?
-- Thomas Witt witt_at_[hidden]