diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-06-19 00:01:16 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-06-19 00:01:16 +0100 |
commit | ed920373a5faece7ea0bfdfebbd615294165c01c (patch) | |
tree | b0e17812ec5afc3cb13a4b604dbce907aea79f23 /gcc/function.c | |
parent | 1fe39f194c83e0189a239edf44d9db191c1625fa (diff) | |
download | gcc-ed920373a5faece7ea0bfdfebbd615294165c01c.zip gcc-ed920373a5faece7ea0bfdfebbd615294165c01c.tar.gz gcc-ed920373a5faece7ea0bfdfebbd615294165c01c.tar.bz2 |
Implement new serial algorithms from Parallelism TS (P0024R2)
These new (non-parallel) algorithms were added to C++17 along with the
parallel algorithms, but were missing from libstdc++.
* include/bits/algorithmfwd.h: Change title of doc group.
* include/bits/stl_algo.h (for_each_n): Add new C++17 algorithm from
P0024R2.
* include/bits/stl_numeric.h: Define doc group and add algos to it.
* include/std/numeric (__is_random_access_iter): New internal trait.
(reduce, transform_reduce, exclusive_scan, inclusive_scan)
(transform_exclusive_scan, transform_inclusive_scan): Likewise.
* testsuite/25_algorithms/for_each/for_each_n.cc: New test.
* testsuite/26_numerics/exclusive_scan/1.cc: New test.
* testsuite/26_numerics/inclusive_scan/1.cc: New test.
* testsuite/26_numerics/reduce/1.cc: New test.
* testsuite/26_numerics/transform_exclusive_scan/1.cc: New test.
* testsuite/26_numerics/transform_inclusive_scan/1.cc: New test.
* testsuite/26_numerics/transform_reduce/1.cc: New test.
* testsuite/util/testsuite_iterators.h (test_container::size()): New
member function.
From-SVN: r272459
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions