
27 Oct
2008
27 Oct
'08
4:37 p.m.
On Mon, Oct 27, 2008 at 7:24 AM, Robert Jones <robertgbjones@gmail.com> 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