5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_COUNT_IF_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_COUNT_IF_HPP_
8#include "arene/base/algorithm/detail/traits.hpp"
43 arene::base::algorithm_detail::iter_reference_t<InputIterator>>>> =
nullptr>
44constexpr auto count_if(InputIterator
begin, InputIterator
end, UnaryPredicate predicate) ->
48 if (
static_cast<bool>(predicate(*
begin))) {
provides a uniform interface to the properties of an iterator
Definition iterator_traits.hpp:90
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
constexpr auto end(Element(&array)[Size]) noexcept -> Element *
Obtain a pointer to the one-past-the-end element of the array.
Definition end.hpp:28
constexpr auto count_if(InputIterator begin, InputIterator end, UnaryPredicate predicate) -> typename std::iterator_traits< InputIterator >::difference_type
Count the number of elements in a range satisfying a predicate.
Definition count_if.hpp:44
constexpr auto begin(Element(&array)[Size]) noexcept -> Element *
Obtain a pointer to the first element of the array.
Definition begin.hpp:28