c_adjacent_find overloads
Declared in <absl/algorithm/container.h>
Container-based version of the <algorithm> std::adjacent_find() function to find equal adjacent elements within a container.
template<typename Sequence>
constexpr
/* implementation-defined */
c_adjacent_find(Sequence& sequence);
» more...
Overload of c_adjacent_find() for using a predicate evaluation other than == as the function's test condition.
template<
typename Sequence,
typename BinaryPredicate>
constexpr
/* implementation-defined */
c_adjacent_find(
Sequence& sequence,
BinaryPredicate&& pred);
» more...
| Name | Description |
|---|---|
| sequence | The container to search. |
| pred | The binary predicate used to compare adjacent elements. |