thrust::make_constant_iterator
Defined in thrust/iterator/constant_iterator.h
- 
template<typename ValueT, typename IndexT>
 inline constant_iterator<ValueT, IndexT> thrust::make_constant_iterator(ValueT x, IndexT i = int())
- This version of - make_constant_iteratorcreates a- constant_iteratorfrom values given for both value and index. The type of- constant_iteratormay be inferred by the compiler from the types of its parameters.- See also - Parameters
- x – The value of the returned - constant_iterator'sconstant value.
- i – The index of the returned - constant_iteratorwithin a sequence. The type of this parameter defaults to- int. In the default case, the value of this parameter is- 0.
 
- Returns
- A new - constant_iteratorwith constant value & index as given by- x&- i.