Header file range/v3/algorithm/adjacent_find.hpp

#include <range/v3/range_fwd.hpp>

#include <range/v3/begin_end.hpp>

#include <range/v3/range_traits.hpp>

#include <range/v3/range_concepts.hpp>

#include <range/v3/utility/functional.hpp>

#include <range/v3/utility/iterator_traits.hpp>

#include <range/v3/utility/static_const.hpp>

namespace ranges
{
    inline namespace v3
    {
        struct adjacent_find_fn;
        
        inline namespace 
        {
            constexpr auto& adjacent_find = static_const<with_braced_init_args<adjacent_find_fn>>::value;
        }
    }
}

Class ranges::v3::adjacent_find_fn

struct adjacent_find_fn
{
    template <typename I, typename S, typename C = equal_to, typename P = ident, int _concept_requires_39 = 42, typename std::enable_if<(_concept_requires_39==43)||(ForwardIterator<I>()&&Sentinel<S, I>()&&IndirectCallableRelation<C, projected<I, P>>()), int>::type=0>
    I operator()(I begin, S end, C pred_ = C{}, P proj_ = P{}) const;
    
    template <typename Rng, typename C = equal_to, typename P = ident, typename I = range_iterator_t<Rng>, int _concept_requires_58 = 42, typename std::enable_if<(_concept_requires_58==43)||(ForwardRange<Rng>()&&IndirectCallableRelation<C, projected<I, P>>()), int>::type=0>
    range_safe_iterator_t<Rng> operator()(Rng&& rng, C pred = C{}, P proj = P{}) const;
};

@{

Function template ranges::v3::adjacent_find_fn::operator()<I, S, C, P, _concept_requires_39>

template <typename I, typename S, typename C = equal_to, typename P = ident, int _concept_requires_39 = 42, typename std::enable_if<(_concept_requires_39==43)||(ForwardIterator<I>()&&Sentinel<S, I>()&&IndirectCallableRelation<C, projected<I, P>>()), int>::type=0>
I operator()(I begin, S end, C pred_ = C{}, P proj_ = P{}) const;

function template \c adjacent_find_fn::operator()

range-based version of the \c adjacent_find std algorithm

Rng is a model of the Range concept C is a model of the BinaryPredicate concept



Variable ranges::v3::adjacent_find

constexpr auto& adjacent_find = static_const<with_braced_init_args<adjacent_find_fn>>::value;

adjacent_find_fn