The six new algorithms that are typically used for parallel execution are also known under the name prefix sum. If the given binary callables are not associative and commutative, the behavior of the algorithms is undefined.
This reduces the elements of the range.
init is the start value.
- Behaves the same as
std::accumulatebut the range may be rearranged.