GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
Namespaces | Functions
reduce.h File Reference
#include <utility>
#include "common/iterator_traits.h"
#include "common/execution_traits.h"
Include dependency graph for reduce.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 grppi
 

Functions

template<typename Execution , typename InputIt , typename Result , typename Combiner , requires_iterator< InputIt > = 0>
auto grppi::reduce (const Execution &ex, InputIt first, std::size_t size, Result &&identity, Combiner &&combine_op)
 Invoke Reduce pattern with identity value on a data sequence with sequential execution. More...
 
template<typename Execution , typename InputIt , typename Result , typename Combiner , requires_iterator< InputIt > = 0>
auto grppi::reduce (const Execution &ex, InputIt first, InputIt last, Result &&identity, Combiner &&combine_op)
 Invoke Reduce pattern with identity value on a data sequence with sequential execution. More...