Daily bit(e) of C++ | std::transform_reduce
Daily bit(e) of C++ #68, The C++17 generalized transformation and reduction algorithm: std::transform_reduce
The transform-reduce is a common operation in distributed systems. C++17 added support for a namesake algorithm that offers the transform-reduce pattern for ranges.
The algorithm requires a commutative and associative reduction but offers single and two-range variants and parallel overloads.