thrust::make_constant_iterator
Defined in thrust/iterator/constant_iterator.h
-
template<typename V>
inline constant_iterator<V> thrust::make_constant_iterator(V x) This version of
make_constant_iteratorcreates aconstant_iteratorusing only a parameter for the desired constant value. The value of the returnedconstant_iterator'sindex is set to0.See also
- Parameters
x – The value of the returned
constant_iterator'sconstant value.- Returns
A new
constant_iteratorwith constant value equal toxand index equal to0.