Bolt  1.1
C++ template library with support for OpenCL
Classes | Namespaces | Macros | Functions
count.h File Reference

Counts the number of elements in the specified range. More...

#include "bolt/amp/bolt.h"
#include "bolt/amp/functional.h"
#include "bolt/amp/iterator/iterator_traits.h"
#include <bolt/amp/detail/count.inl>

Go to the source code of this file.

Classes

struct  bolt::amp::detail::CountIfEqual< T >
 

Namespaces

namespace  bolt
 Defining namespace for the Bolt project.
 
namespace  bolt::amp
 Namespace containing AMP related data types and functions.
 

Functions

template<typename InputIterator , typename EqualityComparable >
bolt::amp::iterator_traits
< InputIterator >
::difference_type 
bolt::amp::count (control &ctl, InputIterator first, InputIterator last, const EqualityComparable &value)
 count counts the number of elements in the specified range which compare equal to the specified value.
 
template<typename InputIterator , typename EqualityComparable >
bolt::amp::iterator_traits
< InputIterator >
::difference_type 
bolt::amp::count (InputIterator first, InputIterator last, const EqualityComparable &value)
 
template<typename InputIterator , typename Predicate >
bolt::amp::iterator_traits
< InputIterator >
::difference_type 
bolt::amp::count_if (control &ctl, InputIterator first, InputIterator last, Predicate predicate=bolt::amp::detail::CountIfEqual< int >())
 count_if counts the number of elements in the specified range for which the specified predicate is true.
 
template<typename InputIterator , typename Predicate >
bolt::amp::iterator_traits
< InputIterator >
::difference_type 
bolt::amp::count_if (InputIterator first, InputIterator last, Predicate predicate)
 

Detailed Description

Counts the number of elements in the specified range.