Native parallel implementation of the Reduce pattern.
More...
|
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.
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.
- Template Parameters
-
InputIt | Iterator type used for input sequence. |
Identity | Type for the identity value. |
Combiner | Callable type for the combiner operation. |
- Parameters
-
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. |