Thrust

◆ make_counting_iterator()

template<typename Incrementable >
__host__ __device__ counting_iterator<Incrementable> thrust::make_counting_iterator ( Incrementable  x)

make_counting_iterator creates a counting_iterator using an initial value for its Incrementable counter.

Parameters
xThe initial value of the new counting_iterator's counter.
Returns
A new counting_iterator whose counter has been initialized to x.