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 a- constant_iteratorusing only a parameter for the desired constant value. The value of the returned- constant_iterator'sindex is set to- 0.- See also - Parameters
- x – The value of the returned - constant_iterator'sconstant value.
- Returns
- A new - constant_iteratorwith constant value equal to- xand index equal to- 0.