3#ifndef TETL_FUNCTIONAL_DEFAULT_SEARCHER_HPP
4#define TETL_FUNCTIONAL_DEFAULT_SEARCHER_HPP
18template <
typename ForwardIter,
typename Predicate = equal_to<>>
27 template <
typename ForwardIter2>
30 if (
auto i =
etl::search(f, l, _first, _last, _predicate); i != l) {
constexpr auto search(FwdIt1 first, FwdIt1 last, FwdIt2 sFirst, FwdIt2 sLast, Predicate pred) -> FwdIt1
Searches for the first occurrence of the sequence of elements [sFirst, sLast) in the range [first,...
Definition search.hpp:24
constexpr auto next(InputIt it, typename iterator_traits< InputIt >::difference_type n=1) -> InputIt
Return the nth successor of iterator it.
Definition next.hpp:14
constexpr auto distance(It first, It last) -> typename iterator_traits< It >::difference_type
Returns the number of hops from first to last.
Definition distance.hpp:16
Definition adjacent_find.hpp:8
constexpr auto operator()(ForwardIter2 f, ForwardIter2 l) const -> etl::pair< ForwardIter2, ForwardIter2 >
Definition default_searcher.hpp:28
constexpr default_searcher(ForwardIter f, ForwardIter l, Predicate p=Predicate())
Definition default_searcher.hpp:20
etl::pair is a class template that provides a way to store two heterogeneous objects as a single unit...
Definition pair.hpp:36