thrust::make_transform_output_iterator
Defined in thrust/iterator/transform_output_iterator.h
-
template<typename UnaryFunction, typename OutputIterator>
transform_output_iterator<UnaryFunction, OutputIterator> thrust::make_transform_output_iterator(OutputIterator out, UnaryFunction fun) make_transform_output_iterator
creates atransform_output_iterator
from anOutputIterator
andUnaryFunction
.See also
- Parameters
out – The
OutputIterator
pointing to the output range of the newly createdtransform_output_iterator
fun – The
UnaryFunction
transform the object before assigning it toout
by the newly createdtransform_output_iterator