Boost logo

Boost :

From: rogeeff (rogeeff_at_[hidden])
Date: 2002-01-29 15:12:44


--- In boost_at_y..., nbecker_at_f... wrote:
> >>>>> "rogeeff" == rogeeff <rogeeff_at_m...> writes:
>
> rogeeff> --- In boost_at_y..., "rogeeff" <rogeeff_at_m...> wrote:
> >>
> >> I have implemented class cycle_iterator based on on
> >> iterator_adaptors. It is generic class that will work with
any
> >> collection. If it sound interesting I could post the code.
> >>
> >> Gennadiy.
>
> rogeeff> I have uploaded implementation and test in vauly area:
> rogeeff>
http://groups.yahoo.com/group/boost/files/cycle_iterator/
>
> rogeeff> David, would you be interesting in this as yet another
example
> rogeeff> application of iterator_adaptor?
>
> rogeeff> Gennadiy.
>
>
>
> I think you forgot that in "advance" in general "n" can be negative,
> in which case the behaviour of "%" is not necessarily what you want.
> You need to handle that specially.

No, I did not. % is exectly what I wanted in this case.

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk