absl::c_includes

Overload of c_includes() for performing a merge using a comp other than operator<.

Synopsis

Declared in <absl/algorithm/container.h>

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

Return Value

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

Parameters

NameDescription
c1The first sorted container.
c2The second sorted container.
compThe comparison used to order the elements.