c++
15/12/2011 · You can use a solution based on boost::zip_ a phony container class maintaining references to your containers, and which return zip_iterator from the begin and end member functions. Now you can write. for (auto p: zip(c1, c2)) { ...