File indexing completed on 2024-11-15 09:04:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_COMPUTE_DETAIL_ITERATOR_TRAITS_HPP
0012 #define BOOST_COMPUTE_DETAIL_ITERATOR_TRAITS_HPP
0013
0014 #include <iterator>
0015
0016 #include <boost/compute/detail/is_contiguous_iterator.hpp>
0017 #include <boost/compute/type_traits/is_device_iterator.hpp>
0018
0019 namespace boost {
0020 namespace compute {
0021 namespace detail {
0022
0023 template<class Iterator>
0024 struct iterator_traits : public std::iterator_traits<Iterator>
0025 {
0026 static const bool is_contiguous = is_contiguous_iterator<Iterator>::value;
0027 static const bool is_on_device = is_device_iterator<Iterator>::value;
0028 static const bool is_on_host = !is_on_device;
0029 };
0030
0031 }
0032 }
0033 }
0034
0035 #endif