24 #include <thrust/detail/config.h> 25 #include <thrust/iterator/detail/discard_iterator_base.h> 28 THRUST_DISABLE_MSVC_POSSIBLE_LOSS_OF_DATA_WARNING_BEGIN
30 THRUST_NAMESPACE_BEGIN
92 template<
typename System = use_default>
94 :
public detail::discard_iterator_base<System>::type
99 typedef typename detail::discard_iterator_base<System>::type super_t;
100 typedef typename detail::discard_iterator_base<System>::incrementable incrementable;
101 typedef typename detail::discard_iterator_base<System>::base_iterator base_iterator;
105 typedef typename super_t::value_type value_type;
116 : super_t(rhs.base()) {}
118 #if THRUST_CPP_DIALECT >= 2011 119 discard_iterator & operator=(
const discard_iterator &) =
default;
130 discard_iterator(incrementable
const &i = incrementable())
131 : super_t(base_iterator(i)) {}
138 reference dereference()
const 143 mutable value_type m_element;
159 inline __host__ __device__
173 THRUST_DISABLE_MSVC_POSSIBLE_LOSS_OF_DATA_WARNING_END
Definition: discard_iterator.h:93
thrust::reference< T, thrust::system::cpp::tag > reference
Definition: pointer.h:98
Definition: iterator_facade.h:60
__host__ __device__ discard_iterator make_discard_iterator(discard_iterator<>::difference_type i=discard_iterator<>::difference_type(0))
Definition: discard_iterator.h:160
A class which exposes a public interface for iterators.