Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-03-19 16:43:50

--- nbecker_at_[hidden] (Neal D. Becker) wrote:
>>>>>> "Gennadiy" == Gennadiy Rozental <rogeeff_at_[hidden]> writes:
> Gennadiy> See Joining Iterator in vault area. (By the way where is it now?)
> Gennadiy> Gennadiy.
> Gennadiy> --- nbecker_at_[hidden] (Neal D. Becker) wrote:
> >> Has anyone tried to make an iterator adaptor to concatenate two
> >> iterators?
> >>
> >> I'm thinking about something that takes as args b1, e1, b2, where b1
> >> is the beginning or range1, e1 is the end, and b2 is the beginning of
> >> range2. Dereferencing would first iterate through [b1...e1) and then
> >> [b2...)
>Thanks for the pointer. Interesting. I think what the joining
>iterator is doing is depending on a state variable to switch between 2
>iterator ranges?
>Not quite what I was looking for. I'm thinking something like this:
>This will switch automatically. Probably only works for random_access.

Joining iterator join (concatenate) two iterator ranges, i.e. it first traverce through first range and then through second and only when reach end of second one it stops. It support random access model if it was supported by original iterators.


A free email account your friends will never forget!
Get YOURNAME_at_[hidden] at

Run a small business? Then you need professional email like you_at_[hidden] from

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