]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/compute/algorithm/any_of.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / compute / algorithm / any_of.hpp
index 54031fbac5d2e25087a107655cc5b37e25719190..e3c52daee39221dfebc30cd6ce9dffd08a2e6c98 100644 (file)
 #ifndef BOOST_COMPUTE_ALGORITHM_ANY_OF_HPP
 #define BOOST_COMPUTE_ALGORITHM_ANY_OF_HPP
 
+#include <boost/static_assert.hpp>
+
 #include <boost/compute/system.hpp>
 #include <boost/compute/algorithm/find_if.hpp>
+#include <boost/compute/type_traits/is_device_iterator.hpp>
 
 namespace boost {
 namespace compute {
@@ -33,6 +36,7 @@ inline bool any_of(InputIterator first,
                    UnaryPredicate predicate,
                    command_queue &queue = system::default_queue())
 {
+    BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
     return ::boost::compute::find_if(first, last, predicate, queue) != last;
 }