Thrust
|
Counting elements in a range. More...
#include <thrust/detail/config.h>
#include <thrust/detail/execution_policy.h>
#include <thrust/iterator/iterator_traits.h>
#include <thrust/detail/count.h>
Go to the source code of this file.
Namespaces | |
thrust | |
thrust is the top-level namespace which contains all Thrust functions and types. | |
Functions | |
template<typename DerivedPolicy , typename InputIterator , typename EqualityComparable > | |
__host__ __device__ thrust::iterator_traits< InputIterator >::difference_type | thrust::count (const thrust::detail::execution_policy_base< DerivedPolicy > &exec, InputIterator first, InputIterator last, const EqualityComparable &value) |
template<typename InputIterator , typename EqualityComparable > | |
thrust::iterator_traits< InputIterator >::difference_type | thrust::count (InputIterator first, InputIterator last, const EqualityComparable &value) |
template<typename DerivedPolicy , typename InputIterator , typename Predicate > | |
__host__ __device__ thrust::iterator_traits< InputIterator >::difference_type | thrust::count_if (const thrust::detail::execution_policy_base< DerivedPolicy > &exec, InputIterator first, InputIterator last, Predicate pred) |
template<typename InputIterator , typename Predicate > | |
thrust::iterator_traits< InputIterator >::difference_type | thrust::count_if (InputIterator first, InputIterator last, Predicate pred) |
Counting elements in a range.