...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::count_if
// In header: <boost/compute/algorithm/count_if.hpp> template<typename InputIterator, typename Predicate> size_t count_if(InputIterator first, InputIterator last, Predicate predicate, command_queue & queue = system::default_queue());