absl::c_adjacent_find

Container-based version of the <algorithm> std::adjacent_find() function to find equal adjacent elements within a container.

Synopsis

Declared in <absl/algorithm/container.h>

template<typename Sequence>
constexpr
/* implementation-defined */
c_adjacent_find(Sequence& sequence);

Return Value

An iterator to the first of the first pair of equal adjacent elements, or the end iterator if none is found.

Parameters

NameDescription
sequenceThe container to search.