boostorg / algorithm

Boost.org algorithm module
http://boost.org/libs/algorithm
Boost Software License 1.0
114 stars 105 forks source link

Add dual-sequence overloads to transform_inclusive_scan() and transform_exclusive_scan() #104

Open jgopel opened 2 years ago

jgopel commented 2 years ago

There are dual-sequence overloads for transform() (this overload is called zip in may other languages) and transform_reduce(), in the standard, but there is no similar version for transform_inclusive_scan() or transform_exclusive_scan(). This patch-set also adds constexpr support to the existing overloads.

h/t to @elbeno for suggesting implementing this.