thrust::make_transform_iterator#
-
template<class AdaptableUnaryFunction, class Iterator>
inline transform_iterator<AdaptableUnaryFunction, Iterator> thrust::make_transform_iterator( - Iterator it,
- AdaptableUnaryFunction fun,
make_transform_iteratorcreates atransform_iteratorfrom anIteratorandAdaptableUnaryFunction.See also
- Parameters:
it – The
Iteratorpointing to the input range of the newly createdtransform_iterator.fun – The
AdaptableUnaryFunctionused to transform the range pointed to byitin the newly createdtransform_iterator.
- Returns:
A new
transform_iteratorwhich transforms the range atitbyfun.