[#absl-c_adjacent_find-01] = xref:absl.adoc[absl]::c_adjacent_find :relfileprefix: ../ :mrdocs: `c_adjacent_find` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::adjacent_find()` function to find equal adjacent elements within a container. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Sequence> constexpr /* implementation-defined */ xref:absl/c_adjacent_find-04.adoc[c_adjacent_find](Sequence& sequence); ---- [.small]#xref:absl/c_adjacent_find-04.adoc[_» more..._]# Overload of `c_adjacent_find()` for using a predicate evaluation other than `==` as the function's test condition. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Sequence, typename BinaryPredicate> constexpr /* implementation-defined */ xref:absl/c_adjacent_find-05.adoc[c_adjacent_find]( Sequence& sequence, BinaryPredicate&& pred); ---- [.small]#xref:absl/c_adjacent_find-05.adoc[_» more..._]# == Return Value * An iterator to the first of the first pair of equal adjacent elements, or the end iterator if none is found. * An iterator to the first of the first matching adjacent pair, or the end iterator if none is found. == Parameters [cols="1,4"] |=== | Name| Description | *sequence* | The container to search. | *pred* | The binary predicate used to compare adjacent elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#