Next permutation. Алгоритм next_permutation. next_permutation c++. c++ next_permutation как работает. next_permutation как перебирает строку.