Thrust

◆ transform_iterator() [2/4]

template<class AdaptableUnaryFunction, class Iterator, class Reference = use_default, class Value = use_default>
__host__ __device__ thrust::transform_iterator< AdaptableUnaryFunction, Iterator, Reference, Value >::transform_iterator ( Iterator const &  x,
AdaptableUnaryFunction  f 
)

This constructor takes as arguments an Iterator and an AdaptableUnaryFunction and copies them to a new transform_iterator.

Parameters
xAn Iterator pointing to the input to this transform_iterator's AdaptableUnaryFunction.
fAn AdaptableUnaryFunction used to transform the objects pointed to by x.