Leko says to YSITD
請參閱 c++ next_permutation