Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-12-02 19:17:16


yeah your right. Well yeah i want somethinlg like a zipped function for c++
that is maybe part of boost.

On Dec 2, 2007 12:11 PM, Neal Becker <ndbecker2_at_[hidden]> wrote:

> chun ping wang wrote:
>
> > hi, is their anyway where i can use boost foreach to iterate through two
> > different containers at once.
> >
> > Like I have two vector of float and i want to iterate through them
> > parallell.. (not using indexing.. since it doesn't work with all types).
> > Thanks.
> >
> > Something that is equalivent to python,
> > for x,y in xArray, yArray:
> > # do some awesome stuff.
> > print x, y
>
> Don't you have to do:
> for x,y in zip (xArray, yArray): ?
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net