37 #include <thrust/iterator/iterator_categories.h>
39 #if defined(__CUDACC__)
46 struct iterator_traits<
const _Ty * __restrict__>
48 typedef random_access_iterator_tag iterator_category;
49 typedef _Ty value_type;
50 typedef ptrdiff_t difference_type;
52 typedef const _Ty* __restrict__ pointer;
53 typedef const _Ty& reference;
100 template <
typename iterator>
109 template <
typename T>
113 typedef typename std::iterator_traits<T>::value_type
value_type;
115 typedef typename std::iterator_traits<T>::pointer
pointer;
116 typedef typename std::iterator_traits<T>::reference
reference;