4#ifndef TETL_ALGORITHM_COUNT_IF_HPP
5#define TETL_ALGORITHM_COUNT_IF_HPP
7#include <etl/_iterator/iterator_traits.hpp>
22template <
typename InputIt,
typename Predicate>
23[[nodiscard]]
constexpr auto count_if(InputIt first, InputIt last, Predicate p) ->
27 for (; first != last; ++first) {
constexpr auto count_if(InputIt first, InputIt last, Predicate p) -> typename iterator_traits< InputIt >::difference_type
Returns the number of elements in the range [first, last) satisfying specific criteria....
Definition count_if.hpp:23
Definition adjacent_find.hpp:9
iterator_traits is the type trait class that provides uniform interface to the properties of LegacyIt...
Definition iterator_traits.hpp:48