r272459 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Jun 18 23:01:00 GMT 2019


Author: redi
Date: Tue Jun 18 23:01:16 2019
New Revision: 272459

URL: https://gcc.gnu.org/viewcvs?rev=272459&root=gcc&view=rev
Log:
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.

Added:
    trunk/libstdc++-v3/testsuite/25_algorithms/for_each/for_each_n.cc
    trunk/libstdc++-v3/testsuite/26_numerics/exclusive_scan/
    trunk/libstdc++-v3/testsuite/26_numerics/exclusive_scan/1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/inclusive_scan/
    trunk/libstdc++-v3/testsuite/26_numerics/inclusive_scan/1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/reduce/
    trunk/libstdc++-v3/testsuite/26_numerics/reduce/1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/transform_exclusive_scan/
    trunk/libstdc++-v3/testsuite/26_numerics/transform_exclusive_scan/1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/transform_inclusive_scan/
    trunk/libstdc++-v3/testsuite/26_numerics/transform_inclusive_scan/1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/transform_reduce/
    trunk/libstdc++-v3/testsuite/26_numerics/transform_reduce/1.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/algorithmfwd.h
    trunk/libstdc++-v3/include/bits/stl_algo.h
    trunk/libstdc++-v3/include/bits/stl_numeric.h
    trunk/libstdc++-v3/include/std/numeric
    trunk/libstdc++-v3/testsuite/util/testsuite_iterators.h



More information about the Libstdc++-cvs mailing list