5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_ADJACENT_FIND_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_ADJACENT_FIND_HPP_
14#include "arene/base/algorithm/detail/traits.hpp"
16#include "arene/base/functional/detail/operator_equal.hpp"
44 class ForwardIterator,
50 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>,
51 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>>>> =
nullptr>
52auto adjacent_find(ForwardIterator first, ForwardIterator last, BinaryPred pred)
noexcept(
55 noexcept(first == last) &&
56 noexcept(first != last) &&
57 noexcept(pred(*first, *first))
64 while (first != last) {
65 if (pred(*prev, *first)) {
95 class ForwardIterator,
99 arene::base::functional_detail::operator_equal_t&,
100 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>,
101 arene::base::algorithm_detail::iter_reference_t<ForwardIterator>>>> =
nullptr>
103 noexcept(
std::adjacent_find(first, last, arene::base::functional_detail::operator_equal))
104) -> ForwardIterator {
105 return std::adjacent_find(first, last, arene::base::functional_detail::operator_equal);
Public export header for the constraints subpackage.
constexpr bool is_predicate_v
backport for the C++20 predicate concept
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
auto adjacent_find(ForwardIterator first, ForwardIterator last, BinaryPred pred) noexcept(//noexcept(++first) &&//noexcept(first++) &&//noexcept(first==last) &&//noexcept(first !=last) &&//noexcept(pred(*first, *first))) -> ForwardIterator
finds the first two adjacent items that satisfy a given predicate
Definition adjacent_find.hpp:52