thrust::make_transform_input_output_iterator
Defined in thrust/iterator/transform_input_output_iterator.h
-
template<typename InputFunction, typename OutputFunction, typename Iterator>
transform_input_output_iterator<InputFunction, OutputFunction, Iterator> thrust::make_transform_input_output_iterator(Iterator io, InputFunction input_function, OutputFunction output_function) make_transform_input_output_iterator
creates atransform_input_output_iterator
from anIterator
aInputFunction
and aOutputFunction
See also
- Parameters
io – An
Iterator
pointing to where the input toInputFunction
will be read from and the result ofOutputFunction
will be written toinput_function – An
InputFunction
to be executed on values read from the iteratoroutput_function – An
OutputFunction
to be executed on values written to the iterator