GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
Functions
Native parallel reduce pattern

Native parallel implementation of the Reduce pattern. More...

Collaboration diagram for Native parallel reduce pattern:

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...
 

Detailed Description

Native parallel implementation of the Reduce pattern.

Function Documentation

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
InputItIterator type used for input sequence.
IdentityType for the identity value.
CombinerCallable type for the combiner operation.
Parameters
exParallel native execution policy object.
firstIterator to the first element in the input sequence.
lastIterator to one past the end of the input sequence.
identityIdentity value for the combiner operation.
combiner_opCombiner operation for the reduction.