absl::c_equal

Overload of c_equal() 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_equal(
    C1 const& c1,
    C2 const& c2,
    BinaryPredicate&& pred);

Return Value

true if the two containers compare equal under pred, otherwise false.

Parameters

NameDescription
c1The first container.
c2The second container.
predThe binary predicate used to compare elements.