| 32 | /// \see all_of(), none_of() |
| 33 | template<class InputIterator, class UnaryPredicate> |
| 34 | inline bool any_of(InputIterator first, |
| 35 | InputIterator last, |
| 36 | UnaryPredicate predicate, |
| 37 | command_queue &queue = system::default_queue()) |
| 38 | { |
| 39 | BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value); |
| 40 | return ::boost::compute::find_if(first, last, predicate, queue) != last; |
| 41 | } |
| 42 | |
| 43 | } // end compute namespace |
| 44 | } // end boost namespace |