Container‐based version of the <algorithm> std::equal() function to test whether two containers are equal.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C1,
    typename C2>
constexpr
bool
c_equal(
    C1 const& c1,
    C2 const& c2);

Return Value

true if the two containers hold equal elements, otherwise false.

Parameters

Name

Description

c1

The first container.

c2

The second container.

Created with MrDocs