GrPPI
0.2
Generic and Reusable Parallel Pattern Interface
|
Sequential implementation of the Map/reduce pattern. More...
Functions | |
template<typename InputIt , typename Result , typename Transformer , typename Combiner > | |
Result | grppi::map_reduce (sequential_execution &, InputIt first, InputIt last, Result identity, Transformer &&transform_op, Combiner &&combine_op) |
Invoke Map/reduce pattern on a data sequence with sequential execution. More... | |
Sequential implementation of the Map/reduce pattern.
Result grppi::map_reduce | ( | sequential_execution & | , |
InputIt | first, | ||
InputIt | last, | ||
Result | identity, | ||
Transformer && | transform_op, | ||
Combiner && | combine_op | ||
) |
Invoke Map/reduce pattern on a data sequence with sequential 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 | 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 combination operation. |
transf_op | Transformation operation. |
combine_op | Combination operation. |