]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/compute/algorithm/none_of.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / compute / algorithm / none_of.hpp
index fc3ed94bc1d35a17aee60727ca91a049695012da..192f5c38b0c553a0c380b1ee96797ee8f028daf1 100644 (file)
 #ifndef BOOST_COMPUTE_ALGORITHM_NONE_OF_HPP
 #define BOOST_COMPUTE_ALGORITHM_NONE_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 {
@@ -29,6 +32,7 @@ inline bool none_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;
 }