
25 Jul
2005
25 Jul
'05
1:07 p.m.
Larry Evans <cppljevans@cox-internet.com> writes:
On 07/24/2005 05:45 PM, Alex Mendes da Costa wrote:
Hi folks:
I quite often have to write code to do the following:
Given N sequences, generate all the N-tuples s.t. the i'th element in each tuple is drawn from the i'th sequence.
For example, if sequence S1 is { 1, 2, 3 } and sequence S2 is { 10, 20 }, I need to generate these tuples: (1, 10), (2, 10), (1, 20), (2, 20).
In:
The OP is undoubtedly talking about runtime iterators, since he referenced the iterator library. -- Dave Abrahams Boost Consulting www.boost-consulting.com