Bolt
1.3
C++ template library with support for OpenCL
|
Functions | |
template<typename InputIterator , typename T > | |
InputIterator | bolt::amp::find (InputIterator first, InputIterator last, const T &value) |
template<typename InputIterator , typename T > | |
InputIterator | bolt::amp::find (bolt::amp::control &ctl, InputIterator first, InputIterator last, const T &value) |
template<typename InputIterator , typename Predicate > | |
InputIterator | bolt::amp::find_if (InputIterator first, InputIterator last, Predicate pred) |
template<typename InputIterator , typename Predicate > | |
InputIterator | bolt::amp::find_if (bolt::amp::control &ctl, InputIterator first, InputIterator last, Predicate pred) |
template<typename InputIterator , typename Predicate > | |
InputIterator | bolt::amp::find_if_not (InputIterator first, InputIterator last, Predicate pred) |
template<typename InputIterator , typename Predicate > | |
InputIterator | bolt::amp::find_if_not (bolt::amp::control &ctl, InputIterator first, InputIterator last, Predicate pred) |
InputIterator bolt::amp::find | ( | InputIterator | first, |
InputIterator | last, | ||
const T & | value | ||
) |
find returns the first iterator i in the range [first, last) such that *i == value or last if no such iterator exists. find_if returns the first iterator i in the range [first, last) such that pred(*i) is true or last if no such iterator exists. find_if_not returns the first iterator i in the range [first, last) such that pred(*i) is false or last if no such iterator exists.
ctl | Optional Control structure to control accelerator, debug, tuning, etc.See bolt::amp::control. |
first | Beginning of the source copy sequence. |
last | End of the source copy sequence. |
value | value to search |
pred | The predicate to test |
result | The first iterator i such that *i == value or pred(*i) is true and last otherwise. \tInputIterator is a model of Input Iterator and InputIterator's value_type is equality comparable to type T. \tT is a model of EqualityComparable. |
The following demonstrates how to use find
, find_if and find_if_not