Boost logo

Boost :

Subject: Re: [boost] [zip_iterator] Understanding why.
From: Stjepan Rajko (stipe_at_[hidden])
Date: 2008-10-27 12:37:58


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, anditerate through that, something like
>
> vector<int> v1;
> vector<int> v2;
>
> typedef zip_composite<int, int> Z;
> Z zip( v1, v2 );
>
> for ( Z::iterator i=zip.begin( ); i !=zip.end( ); ++i )
> {
> // ... blah, blah, blah
> }
>

In the RangeEx library in the vault (in the Algorithms directory) has
some zip_range classes that appear to fit the above pattern (in
range/combine.hpp).

This library is currently sitting in the review queue and waiting for
a review manager.

Best,

Stjepan


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