std::next_permutation - cppreference.com