Overload of c_next_permutation() for performing a lexicographical comparison using a comp operator instead of operator<.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C,
    typename LessThan>
constexpr
bool
c_next_permutation(
    C& c,
    LessThan&& comp);

Return Value

true if a next permutation exists, false if the range was reset to the first permutation.

Parameters

Name

Description

c

The container to rearrange.

comp

The comparison used to order the elements.

Created with MrDocs