Boost logo

Boost :

Subject: Re: [boost] [zip_iterator] Understanding why.
From: Peter Bartlett (pete_at_[hidden])
Date: 2008-10-27 13:00:00

> On Mon, Oct 27, 2008 at 7:24 AM, Robert Jones
> <robertgbjones_at_[hidden]> wrote:
>> Given two ranges (say vectors), I'd like to be able to generate an
>> iterable composite, and iterate through that, something like
>> vector<int> v1;
>> vector<int> v2;
>> typedef zip_composite<int, int> Z;
>> Z zip( v1, v2 );

As written, this would require erasure of the range/container type.
Such a thing is not impossible (google around for any_iterator) but is
perhaps something for a range_ex_ex rather than range_ex.

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