Overload of c_adjacent_find() for using a predicate evaluation other than == as the function's test condition.
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename Sequence,
typename BinaryPredicate>
constexpr
/* implementation-defined */
c_adjacent_find(
Sequence& sequence,
BinaryPredicate&& pred);
Return Value
An iterator to the first of the first matching adjacent pair, or the end iterator if none is found.
Parameters
Name |
Description |
sequence |
The container to search. |
pred |
The binary predicate used to compare adjacent elements. |
Created with MrDocs