tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
adjacent_find.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename ForwardIt>
constexpr auto adjacent_find (ForwardIt first, ForwardIt last) -> ForwardIt
 Searches the range [first, last) for two consecutive equal elements. Elements are compared using the given binary predicate p.
 
template<typename ForwardIt, typename Predicate>
constexpr auto adjacent_find (ForwardIt first, ForwardIt last, Predicate pred) -> ForwardIt
 Searches the range [first, last) for two consecutive equal elements. Elements are compared using the given binary predicate p.