Boost logo

Boost :

Subject: Re: [boost] combinations and permutations
From: Christopher Jefferson (chris_at_[hidden])
Date: 2011-01-04 06:22:40


On 4 Jan 2011, at 03:40, Howard Hinnant wrote:

> Warming this up for tr2:
>
> http://home.roadrunner.com/~hinnant/combinations.html
>
> Comments welcome. Real world use welcome.

For TR2, it would be nice to produce a range object, so we could write:

for(perm: reversible_permutation(first, mid, last) )
  f(perm);

Of course, before doing this, it would be nice to propose boost::range, or something similar to it, for TR2. Is anyone working on anything like that?

Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk