std::inclusive_scan

Jonathan Wakely jwakely@redhat.com
Tue Jun 18 23:04:00 GMT 2019


On 18/06/19 19:08 +0100, Dietmar Kuehl via libstdc++ wrote:
>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.

Right.

But as of a few minutes ago (and r272459 in subversion) the versions
without an execution policy are also present, thanks to this patch.

Tested x86_64-linux, committed to trunk.


>> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 45948 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190618/d7ac06e9/attachment.bin>


More information about the Libstdc++ mailing list