thrust::make_transform_iterator
Defined in thrust/iterator/transform_iterator.h
-
template<class AdaptableUnaryFunction, class Iterator>
inline transform_iterator<AdaptableUnaryFunction, Iterator> thrust::make_transform_iterator(Iterator it, AdaptableUnaryFunction fun) make_transform_iterator
creates atransform_iterator
from anIterator
andAdaptableUnaryFunction
.See also
- Parameters
it – The
Iterator
pointing to the input range of the newly createdtransform_iterator
.fun – The
AdaptableUnaryFunction
used to transform the range pointed to byit
in the newly createdtransform_iterator
.
- Returns
A new
transform_iterator
which transforms the range atit
byfun
.