GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
Polymorphic implementation of the Map/reduce pattern. More...
Functions | |
template<typename InputIt , typename Transformer , typename Result , typename Combiner > | |
Result | grppi::map_reduce (polymorphic_execution &ex, InputIt first, InputIt last, Result identity, Transformer &&transform_op, Combiner &&combine_op) |
Invoke Map/reduce pattern on a data sequence with polymorphic execution. More... | |
Polymorphic implementation of the Map/reduce pattern.
Result grppi::map_reduce | ( | polymorphic_execution & | ex, |
InputIt | first, | ||
InputIt | last, | ||
Result | identity, | ||
Transformer && | transform_op, | ||
Combiner && | combine_op | ||
) |
Invoke Map/reduce pattern on a data sequence with polymorphic execution.
InputIt | Iterator type used for the input sequence. |
Result | Result type of the reduction. |
Transformer | Callable type for the transformation operation. |
Combiner | Callable type for the combination operation of the reduction. |
ex | Polymorphic 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 combination operation. |
transf_op | Transformation operation. |
combine_op | Combination operation. |