GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
Polymorphic implementation of Reduce pattern. More...
Functions | |
template<typename InputIt , typename Identity , typename Combiner > | |
auto | grppi::reduce (polymorphic_execution &e, InputIt first, InputIt last, Identity identity, Combiner &&combine_op) |
Invoke Reduce pattern with no identity value on a data sequence with sequential execution. More... | |
Polymorphic implementation of Reduce pattern.
auto grppi::reduce | ( | polymorphic_execution & | e, |
InputIt | first, | ||
InputIt | last, | ||
Identity | identity, | ||
Combiner && | combine_op | ||
) |
Invoke Reduce pattern with no identity value on a data sequence with sequential execution.
InputIt | Iterator type used for input sequence. |
Identity | Type for the identity value. |
Combiner | Callable type for the combiner operation. |
ex | Sequential 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. |