gcc/libstdc++-v3/testsuite/26_numerics
Jonathan Wakely ed920373a5 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
2019-06-19 00:01:16 +01:00
..
accumulate Update copyright years. 2019-01-01 13:31:55 +01:00
adjacent_difference Update copyright years. 2019-01-01 13:31:55 +01:00
bit Remove redundant dg-do directive from test 2019-03-04 13:18:47 +00:00
complex Fix tests that fail with -std=gnu++98 or -std=gnu++11 2019-06-06 13:13:42 +01:00
exclusive_scan Implement new serial algorithms from Parallelism TS (P0024R2) 2019-06-19 00:01:16 +01:00
gcd Update copyright years. 2019-01-01 13:31:55 +01:00
headers In C++17 <math.h> should not put special functions in global namespace 2019-03-21 14:03:56 +00:00
inclusive_scan Implement new serial algorithms from Parallelism TS (P0024R2) 2019-06-19 00:01:16 +01:00
inner_product Update copyright years. 2019-01-01 13:31:55 +01:00
iota Update copyright years. 2019-01-01 13:31:55 +01:00
lcm Update copyright years. 2019-01-01 13:31:55 +01:00
midpoint Fix std::midpoint(T*, T*) for reversed arguments 2019-05-24 16:39:35 +01:00
partial_sum Update copyright years. 2019-01-01 13:31:55 +01:00
pstl/numeric_ops Synchronize libstdc++ PSTL with upstream LLVM PSTL 2019-06-07 22:01:16 +00:00
random Fix random_device to work with COW strings again 2019-05-31 11:34:53 +01:00
reduce Implement new serial algorithms from Parallelism TS (P0024R2) 2019-06-19 00:01:16 +01:00
slice Update copyright years. 2019-01-01 13:31:55 +01:00
slice_array Update copyright years. 2019-01-01 13:31:55 +01:00
transform_exclusive_scan Implement new serial algorithms from Parallelism TS (P0024R2) 2019-06-19 00:01:16 +01:00
transform_inclusive_scan Implement new serial algorithms from Parallelism TS (P0024R2) 2019-06-19 00:01:16 +01:00
transform_reduce Implement new serial algorithms from Parallelism TS (P0024R2) 2019-06-19 00:01:16 +01:00
valarray Update copyright years. 2019-01-01 13:31:55 +01:00
lerp.cc Define midpoint and lerp functions for C++20 (P0811R3) 2019-03-05 18:37:24 +00:00