thrust

◆ make_constant_iterator() [2/2]

template<typename V >
__host__ __device__ constant_iterator<V> thrust::make_constant_iterator ( x)
inline

This version of make_constant_iterator creates a constant_iterator using only a parameter for the desired constant value. The value of the returned constant_iterator's index is set to 0.

Parameters
xThe value of the returned constant_iterator's constant value.
Returns
A new constant_iterator with constant value equal to x and index equal to 0.
See also
constant_iterator