Listing All Permutations (順列の全列挙)

Listing All Permutations (順列全列挙)
ported next_permutation() in C++(STL)