Overload of c_prev_permutation() for performing a lexicographical comparison using a comp operator instead of operator<.
Declared in <absl/algorithm/container.h>
template<
typename C,
typename LessThan>
constexpr
bool
c_prev_permutation(
C& c,
LessThan&& comp);
true if a previous permutation exists, false if the range was reset to the last permutation.
| Name | Description |
|---|---|
| c | The container to rearrange. |
| comp | The comparison used to order the elements. |