Horizon
Namespaces | Functions
count_if.hpp File Reference
#include <utility>
#include <range/v3/range_fwd.hpp>
#include <range/v3/functional/identity.hpp>
#include <range/v3/functional/invoke.hpp>
#include <range/v3/iterator/concepts.hpp>
#include <range/v3/iterator/traits.hpp>
#include <range/v3/range/access.hpp>
#include <range/v3/range/concepts.hpp>
#include <range/v3/range/traits.hpp>
#include <range/v3/utility/static_const.hpp>
#include <range/v3/detail/prologue.hpp>
#include <range/v3/detail/epilogue.hpp>

Go to the source code of this file.

Namespaces

 ranges::cpp20
 

Functions

 ranges::template (typename I, typename S, typename R, typename P=identity)(requires input_iterator< I > AND sentinel_for< S
 function template count_if More...
 
I AND constexpr indirect_unary_predicate< R, projected< I, P > > iter_difference_t< I > RANGES_FUNC() ranges::count_if (I first, S last, R pred, P proj=P{})
 
 ranges::template (typename Rng, typename R, typename P=identity)(requires input_range< Rng > AND indirect_unary_predicate< R
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr projected< iterator_t< Rng >, P > iter_difference_t< iterator_t< Rng > > RANGES_FUNC() ranges::count_if (Rng &&rng, R pred, P proj=P{})