Overload of c_contains_subrange() for using a predicate evaluation other than == as the function's test condition.
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename Sequence1,
typename Sequence2,
typename BinaryPredicate>
constexpr
bool
c_contains_subrange(
Sequence1& sequence,
Sequence2& subsequence,
BinaryPredicate&& pred);
Return Value
true if subsequence is found within sequence under pred, otherwise false.
Parameters
Name |
Description |
sequence |
The container to search. |
subsequence |
The subsequence to search for. |
pred |
The binary predicate used to compare elements. |
Created with MrDocs