生成下一个字典序排列
#include <algorithm>
bool next_permutation( iterator start, iterator end );
The next_permutation() function attempts to transform the given range of elements [start,end) intothe next
lexicographically greater permutation of elements. If it succeeds, it returns true, otherwise, itreturns false.