|
Boost Users : |
Subject: Re: [Boost-users] [fusion - I think!] Multiple nested range traversal.
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-01-19 04:08:57
On Mon, Jan 12, 2009 at 6:02 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:
> Something like this would work:
>
> make_product_range(
> make_counting_range(0, 3),
> make_counting_range(2, 5),
> make_counting_range(4, 10)
> )
>
> should return a range whose elements are (0, 2, 4), (0, 2, 5), etc.
>
> Then as I recall, fusion has function object adapters for splitting
> these up into separate arguments to a function.
>
> I've attached a solution that handles the two argument case.
>
>
Thanks for that Steven, that's definitely heading in the right
direction. It's taking me a while to digest, but doing so is proving
highly informative and useful.
Rob.
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