next_permutation and cartesian product for ranges?
Steven Schveighoffer
schveiguy at yahoo.com
Tue Oct 9 15:09:38 PDT 2012
On Tue, 09 Oct 2012 17:23:07 -0400, bearophile <bearophileHUGS at lycos.com>
wrote:
> Andrei Alexandrescu:
>
>> Yes, we need next_permutation. It will be up to you to convince the
>> Grand Inquisition Committee of Reviewers that next_even_permutation is
>> necessary and/or sufficient.
>
> I don't like the design of C++ STL here. Instead of a
> next_permutation(), what about ranges that yield all permutations, all
> adjacent permutations, all combinations?
Is there any advantage over having a function? I'd think you could easily
build a range based on the function, no?
-Steve
More information about the Digitalmars-d
mailing list