thrust::make_counting_iterator#
-
template<typename Incrementable>
inline counting_iterator<Incrementable> thrust::make_counting_iterator(
)# make_counting_iteratorcreates acounting_iteratorusing an initial value for itsIncrementablecounter.- Parameters:
x – The initial value of the new
counting_iterator'scounter.- Returns:
A new
counting_iteratorwhose counter has been initialized tox.