std::inclusive_scan

Dietmar Kuehl via libstdc++ libstdc++@gcc.gnu.org
Tue Jun 18 18:08:00 GMT 2019


The first release shipping the parallel algorithms is gcc-9.1.0. Specifically std::inclusive_scan() *without* execution policy seems to be missing, though. I guess, that’s because it was an add/renamed algorithm. The versions
 taking an execution policy are present.

> On 18 Jun 2019, at 18:21, Bence Kodaj <bence.kodaj@gmail.com> wrote:
> 
> Dear libstdc++ list members,
> 
> Could you tell me whether std::inclusive_scan is supposed to be included in
> the most recent version of libstdc++?
> 
> Apologies if this is a well-known issue - I did search the list archive for
> inclusive_scan at https://gcc.gnu.org/ml/libstdc++/ , and I got no hits.
> 
> Why I'm asking: per
> https://en.cppreference.com/w/cpp/algorithm/inclusive_scan , this algorithm
> is supposed to be part of the STL since C++17, but apparently, it's missing
> from the version of libstdc++ that shipped with gcc 8.1 (which I installed
> a few months ago). I also looked in the git mirror of the libstdc++ source
> code (https://github.com/gcc-mirror/gcc/tree/master/libstdc%2B%2B-v3), but
> there's no inclusive_scan  in any of the <numeric> headers I found
> (include/std/numeric, include/experimental/numeric, include/ext/numeric,
> include/parallel/numeric).
> 
> Am I missing something, or is std::inclusive_scan actually not part of the
> most recent libstdc++?
> 
> Best regards,
> Bence Kodaj



More information about the Libstdc++ mailing list