thrust

◆ make_discard_iterator()

__host__ __device__ discard_iterator thrust::make_discard_iterator ( discard_iterator<>::difference_type  i = discard_iterator<>::difference_type(0))
inline

make_discard_iterator creates a discard_iterator from an optional index parameter.

Parameters
iThe index of the returned discard_iterator within a range. In the default case, the value of this parameter is 0.
Returns
A new discard_iterator with index as given by i.
See also
constant_iterator