GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
Native parallel implementation of the Reduce pattern. More...
Functions | |
template<typename InputIt , typename Identity , typename Combiner > | |
auto | grppi::reduce (parallel_execution_native &ex, InputIt first, InputIt last, Identity identity, Combiner &&combine_op) |
Invoke Reduce pattern with identity value on a data sequence with parallel native execution. More... | |
Native parallel implementation of the Reduce pattern.
auto grppi::reduce | ( | parallel_execution_native & | ex, |
InputIt | first, | ||
InputIt | last, | ||
Identity | identity, | ||
Combiner && | combine_op | ||
) |
Invoke Reduce pattern with identity value on a data sequence with parallel native execution.
InputIt | Iterator type used for input sequence. |
Identity | Type for the identity value. |
Combiner | Callable type for the combiner operation. |
ex | Parallel native execution policy object. |
first | Iterator to the first element in the input sequence. |
last | Iterator to one past the end of the input sequence. |
identity | Identity value for the combiner operation. |
combiner_op | Combiner operation for the reduction. |