Template:cpp/algorithm/dsc next permutation