This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/11364] half of permuations missing


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11364



------- Additional Comments From craie at acm dot org  2003-06-29 02:46 -------
Created an attachment (id=4300)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4300&action=view)
small program to count permutations from next_permutation

seems the permutation can't handle lists with duplicates properly.
the base permutation is defined as ascending order from [first,last).
this is not necessarily of unique values, however, but of all the
values in that range of iterators.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]