c_equal overloads
Synopses
Declared in <absl/algorithm/container.h>
Container‐based version of the <algorithm> std::equal() function to test whether two containers are equal.
template<
typename C1,
typename C2>
constexpr
bool
c_equal(
C1 const& c1,
C2 const& c2);
Overload of c_equal() for using a predicate evaluation other than == as the function's test condition.
template<
typename C1,
typename C2,
typename BinaryPredicate>
constexpr
bool
c_equal(
C1 const& c1,
C2 const& c2,
BinaryPredicate&& pred);
Return Value
-
trueif the two containers hold equal elements, otherwisefalse. -
trueif the two containers compare equal underpred, otherwisefalse.
Parameters
Name |
Description |
c1 |
The first container. |
c2 |
The second container. |
pred |
The binary predicate used to compare elements. |
Created with MrDocs