Header file range/v3/algorithm/search_n.hpp

#include <meta/meta.hpp>

#include <range/v3/range_fwd.hpp>

#include <range/v3/begin_end.hpp>

#include <range/v3/empty.hpp>

#include <range/v3/distance.hpp>

#include <range/v3/range_concepts.hpp>

#include <range/v3/range_traits.hpp>

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

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

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

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

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

namespace ranges
{
    inline namespace v3
    {
        template <typename I, typename V, typename C = equal_to, typename P = ident>
        using Searchnable = meta::strict_and<ForwardIterator<I>, IndirectCallableRelation<C, projected<I, P>, V const*>>;
        
        struct search_n_fn;
        
        inline namespace 
        {
            constexpr auto& search_n = static_const<with_braced_init_args<search_n_fn>>::value;
        }
    }
}

Alias template ranges::v3::Searchnable<I, V, C, P>

template <typename I, typename V, typename C = equal_to, typename P = ident>
using Searchnable = meta::strict_and<ForwardIterator<I>, IndirectCallableRelation<C, projected<I, P>, V const*>>;

ingroup group-concepts


Class ranges::v3::search_n_fn

struct search_n_fn
{
    template <typename I, typename S, typename V, typename C = equal_to, typename P = ident, int _concept_requires_121 = 42, typename std::enable_if<(_concept_requires_121==43)||(Searchnable<I, V, C, P>()&&Sentinel<S, I>()), int>::type=0>
    I operator()(I begin, S end, iterator_difference_t<I> count, V const& val, C pred_ = C{}, P proj_ = P{}) const;
    
    template <typename Rng, typename V, typename C = equal_to, typename P = ident, typename I = range_iterator_t<Rng>, int _concept_requires_139 = 42, typename std::enable_if<(_concept_requires_139==43)||(Searchnable<I, V, C, P>()&&Range<Rng>()), int>::type=0>
    range_safe_iterator_t<Rng> operator()(Rng&& rng, iterator_difference_t<I> count, V const& val, C pred_ = C{}, P proj_ = P{}) const;
};

@{


Variable ranges::v3::search_n

constexpr auto& search_n = static_const<with_braced_init_args<search_n_fn>>::value;

search_n_fn