c_includes overloads
Synopses
Declared in <absl/algorithm/container.h>
Container‐based version of the <algorithm> std::includes() function to test whether a sorted container c1 entirely contains another sorted container c2.
template<
typename C1,
typename C2>
constexpr
bool
c_includes(
C1 const& c1,
C2 const& c2);
Overload of c_includes() for performing a merge using a comp other than operator<.
template<
typename C1,
typename C2,
typename LessThan>
constexpr
bool
c_includes(
C1 const& c1,
C2 const& c2,
LessThan&& comp);
Return Value
-
trueif every element ofc2is contained inc1, otherwisefalse. -
trueif every element ofc2is contained inc1undercomp, otherwisefalse.
Parameters
Name |
Description |
c1 |
The first sorted container. |
c2 |
The second sorted container. |
comp |
The comparison used to order the elements. |
Created with MrDocs