thrust

◆ make_transform_iterator()

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

make_transform_iterator creates a transform_iterator from an Iterator and AdaptableUnaryFunction.

Parameters
itThe Iterator pointing to the input range of the newly created transform_iterator.
funThe 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.
See also
transform_iterator