tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
count_if.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename InputIt, typename Predicate>
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. Counts elements for which predicate p returns true.