absl::c_includes

Container-based version of the <algorithm> std::includes() function to test whether a sorted container c1 entirely contains another sorted container c2.

Synopsis

Declared in <absl/algorithm/container.h>

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

Return Value

true if every element of c2 is contained in c1, otherwise false.

Parameters

NameDescription
c1The first sorted container.
c2The second sorted container.