Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2002-10-14 01:52:22

>From: "Joe Gottman" <jgottman_at_[hidden]>

> "Terje Slettebø" <tslettebo_at_[hidden]> wrote in message
> news:058901c272c8$a261f6b0$60fb5dd5_at_pc...
> >From: "Yitzhak Sapir" <yitzhaks_at_[hidden]>
> >As I understand, the only thing you can safely do with an end() iterator
> >to compare it with other iterators.
> If operator-- is defined on an iterator, and begin() != end(), then it
> also safe to decrement an iterator that is equal to end().

Yes, I realise now that is a requirement of bidirectional iterators.

> reverse_iterators depend on this fact. This is why rbegin().base() ==
> end().



Boost list run by bdawes at, gregod at, cpdaniel at, john at