Thrust

◆ make_transform_input_output_iterator()

template<typename InputFunction , typename OutputFunction , typename Iterator >
transform_input_output_iterator<InputFunction, OutputFunction, Iterator> __host__ __device__ thrust::make_transform_input_output_iterator ( Iterator  io,
InputFunction  input_function,
OutputFunction  output_function 
)

make_transform_input_output_iterator creates a transform_input_output_iterator from an Iterator a InputFunction and a OutputFunction

Parameters
ioAn Iterator pointing to where the input to InputFunction will be read from and the result of OutputFunction will be written to
input_functionAn InputFunction to be executed on values read from the iterator
output_functionAn OutputFunction to be executed on values written to the iterator
See also
transform_input_output_iterator