thrust::make_discard_iterator

Defined in thrust/iterator/discard_iterator.h

template<typename System = use_default>
inline discard_iterator thrust::make_discard_iterator(typename discard_iterator<System>::difference_type i = {})

make_discard_iterator creates a discard_iterator from an optional index parameter.

Parameters

i – The 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.