14#ifndef RANGES_V3_ALGORITHM_ANY_OF_HPP
15#define RANGES_V3_ALGORITHM_ANY_OF_HPP
28#include <range/v3/utility/static_const.hpp>
30#include <range/v3/detail/prologue.hpp>
36 RANGES_FUNC_BEGIN(any_of)
39 template(
typename I,
typename S,
typename F,
typename P = identity)(
40 requires input_iterator<I> AND sentinel_for<S, I> AND
41 indirect_unary_predicate<F, projected<I, P>>)
42 constexpr bool RANGES_FUNC(any_of)(I
first, S last, F pred, P proj = P{})
51 template(
typename Rng,
typename F,
typename P = identity)(
52 requires input_range<Rng> AND
53 indirect_unary_predicate<F, projected<iterator_t<Rng>, P>>)
54 constexpr bool RANGES_FUNC(any_of)(Rng && rng, F pred, P proj = P{})
56 return (*
this)(begin(rng), end(rng), std::move(pred), std::move(proj));
59 RANGES_FUNC_END(any_of)
68#include <range/v3/detail/epilogue.hpp>
typename Fn::template invoke< Args... > invoke
Evaluate the invocable Fn with the arguments Args.
Definition meta.hpp:541
front< Pair > first
Retrieve the first element of the pair Pair.
Definition meta.hpp:2251