]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/compute/algorithm/find.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / compute / algorithm / find.hpp
index a6225b8c99538f0da4f49b950ea189bcaf2e7db5..338b5af0c3f074e70e4b27bc06e984587c6982af 100644 (file)
 #ifndef BOOST_COMPUTE_ALGORITHM_FIND_HPP
 #define BOOST_COMPUTE_ALGORITHM_FIND_HPP
 
+#include <boost/static_assert.hpp>
+
 #include <boost/compute/lambda.hpp>
 #include <boost/compute/system.hpp>
 #include <boost/compute/command_queue.hpp>
 #include <boost/compute/algorithm/find_if.hpp>
 #include <boost/compute/type_traits/vector_size.hpp>
+#include <boost/compute/type_traits/is_device_iterator.hpp>
 
 namespace boost {
 namespace compute {
@@ -30,6 +33,7 @@ inline InputIterator find(InputIterator first,
                           const T &value,
                           command_queue &queue = system::default_queue())
 {
+    BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
     typedef typename std::iterator_traits<InputIterator>::value_type value_type;
 
     using ::boost::compute::_1;