C++ : "reset" std::next_permutation()

Sunday, May 11, 2014

Is there a way to "reset" std::next_permutation()? Let's say I want to go over the permutations of the vector several times. The only thing I was able to find is to go through next_permutation and prev_permutation alternatively.


Thanks







http://ift.tt/1iDpYzf