Re: [Boost-users] Foreach For iterating two containers

22 Feb
2010
22 Feb
'10
1:08 a.m.
I agree that a built-in solution to FOREACH would be best, but a secondary choice would be to use a zip iterator. http://www.boost.org/doc/libs/1_42_0/libs/iterator/doc/zip_iterator.html Cheers, Rusty

23 Feb
23 Feb
2:23 a.m.
New subject: Foreach For iterating two containers
Thanks for the help. Thanks, Gokul.

3:11 a.m.
New subject: Foreach For iterating two containers
Rusty Jones wrote:
I agree that a built-in solution to FOREACH would be best, but a secondary choice would be to use a zip iterator.
http://www.boost.org/doc/libs/1_42_0/libs/iterator/doc/zip_iterator.html
I applaud your zip iterator suggestion. I think assembling simple, straightforward, orthogonal library components is actually preferable to funny special cases.
5479
Age (days ago)
5480
Last active (days ago)
2 comments
3 participants
participants (3)
-
Gokulakannan Somasundaram
-
Nat Goodspeed
-
Rusty Jones