boost::compute::count
// In header: <boost/compute/algorithm/count.hpp> template<typename InputIterator, typename T> size_t count(InputIterator first, InputIterator last, const T & value, command_queue & queue = system::default_queue());
Returns the number of occurrences of value in the range [first, last).
value
first
last
See Also:
count_if()