Warning, file /include/boost/compute/algorithm/any_of.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_COMPUTE_ALGORITHM_ANY_OF_HPP
0012 #define BOOST_COMPUTE_ALGORITHM_ANY_OF_HPP
0013
0014 #include <boost/static_assert.hpp>
0015
0016 #include <boost/compute/system.hpp>
0017 #include <boost/compute/algorithm/find_if.hpp>
0018 #include <boost/compute/type_traits/is_device_iterator.hpp>
0019
0020 namespace boost {
0021 namespace compute {
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 template<class InputIterator, class UnaryPredicate>
0034 inline bool any_of(InputIterator first,
0035 InputIterator last,
0036 UnaryPredicate predicate,
0037 command_queue &queue = system::default_queue())
0038 {
0039 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
0040 return ::boost::compute::find_if(first, last, predicate, queue) != last;
0041 }
0042
0043 }
0044 }
0045
0046 #endif