STAPL API Reference |
Modules Classes |
Summarize the number of elements in the view(s) that meet the specified criteria. Defined in stapl/algorithms/algorithm.hpp. More...
Functions | |
template<typename View , typename T > | |
result_of::count< View, T >::type | stapl::prototype::count (View const &view, T const &value) |
Computes the number of elements in the input view which compare equal to the given value. More... | |
Summarize the number of elements in the view(s) that meet the specified criteria. Defined in stapl/algorithms/algorithm.hpp.
result_of::count<View, T>::type stapl::prototype::count | ( | View const & | view, |
T const & | value | ||
) |
Computes the number of elements in the input view which compare equal to the given value.
view | One-dimensional view over the input elements. |
value | Value to count the occurrences of in the input. |
This algorithm is non-mutating.