make_transform_iterator#

template<class AdaptableUnaryFunction, class Iterator>
inline transform_iterator<AdaptableUnaryFunction, Iterator> thrust::make_transform_iterator(
Iterator it,
AdaptableUnaryFunction fun,
)#

make_transform_iterator creates a transform_iterator from an Iterator and AdaptableUnaryFunction.

Parameters:
  • it – The Iterator pointing to the input range of the newly created transform_iterator.

  • fun – The AdaptableUnaryFunction used to transform the range pointed to by it in the newly created transform_iterator.

Returns:

A new transform_iterator which transforms the range at it by fun.