|
Boost : |
From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2002-12-16 15:55:01
> Over the weekend I had a bit of free time so I wrote up a
> spanning_iterator based on the iterator_adaptors framework. To throw
> in a bit more complication, I wanted something generic enough that I
> could span different kinds of container. There should be a way to
> span a std::vector and a std::list as long as their value_types are
> the same. The spanning_iterator holds two tuples -- one for the
> "current" iterators and the other for the end iterators for each
> container the spanning_iterator spans. The idea is that when the
> current "current" iterator reaches its end (the corresponding element
> in the "ends" tuple) the next iterator in the "current" tuple becomes
> current and so on until all "current" iterators reach their ends.
While ago I wrote joining_iterator that "join" 2 iterator ranages. You can
combine joining interator as many times as you wish to provide multiple
ranges iterator.
I never really have a chance to writte a docs for it It's if vault area.
Gennadiy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk