Overload of c_is_permutation() for using a predicate evaluation other than == as the function's test condition.
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename C1,
typename C2,
typename BinaryPredicate>
constexpr
bool
c_is_permutation(
C1 const& c1,
C2 const& c2,
BinaryPredicate&& pred);
Return Value
true if c1 is a permutation of c2 under pred, otherwise false.
Parameters
Name |
Description |
c1 |
The first container. |
c2 |
The second container. |
pred |
The binary predicate used to compare elements. |
Created with MrDocs