gcc/libstdc++-v3/testsuite
Patrick Palka fd33598558 libstdc++: P1645R1 constexpr for <numeric> algorithms
This adds constexpr to 11 algorithms defined in <numeric> as per P1645R1.

libstdc++-v3/ChangeLog:

	P1645R1 constexpr for <numeric> algorithms
	* include/bits/stl_numeric.h (iota, accumulate, inner_product,
	partial_sum, adjacent_difference): Make conditionally constexpr for
	C++20.
	* include/std/numeric (__cpp_lib_constexpr_numeric): Define this feature
	test macro.
	(reduce, transform_reduce, exclusive_scan, inclusive_scan,
	transform_exclusive_scan, transform_inclusive_scan): Make conditionally
	constexpr for C++20.
	* include/std/version (__cpp_lib_constexpr_numeric): Define.
	* testsuite/26_numerics/accumulate/constexpr.cc: New test.
	* testsuite/26_numerics/adjacent_difference/constexpr.cc: Likewise.
	* testsuite/26_numerics/exclusive_scan/constexpr.cc: Likewise.
	* testsuite/26_numerics/inclusive_scan/constexpr.cc: Likewise.
	* testsuite/26_numerics/inner_product/constexpr.cc: Likewise.
	* testsuite/26_numerics/iota/constexpr.cc: Likewise.
	* testsuite/26_numerics/partial_sum/constexpr.cc: Likewise.
	* testsuite/26_numerics/reduce/constexpr.cc: Likewise.
	* testsuite/26_numerics/transform_exclusive_scan/constexpr.cc: Likewise.
	* testsuite/26_numerics/transform_inclusive_scan/constexpr.cc: Likewise.
	* testsuite/26_numerics/transform_reduce/constexpr.cc: Likewise.
2020-02-26 10:23:17 -05:00
..
17_intro libstdc++ P1956R1 On the names of low-level bit manipulation functions 2020-02-17 17:09:18 +00:00
18_support libstdc++: Optimize C++20 comparison category types 2020-02-07 14:09:03 +00:00
19_diagnostics libstdc++: Define operator<=> for <system_error> types 2020-02-20 12:27:48 +00:00
20_util libstdc++: Define <=> for tuple, optional and variant 2020-02-21 17:12:39 +00:00
21_strings
22_locale
23_containers libstdc++: span's deduction-guide for built-in arrays doesn't work (LWG 3369) 2020-02-19 15:28:33 +00:00
24_iterators libstdc++: Add missing bits of P0896R4 pertaining to [back|front]_insert_iterator 2020-02-24 10:09:52 -05:00
25_algorithms libstdc++: Remove __memmove wrapper for constexpr algorithms 2020-02-25 17:01:50 +00:00
26_numerics libstdc++: P1645R1 constexpr for <numeric> algorithms 2020-02-26 10:23:17 -05:00
27_io tolerate padding in mbstate_t 2020-01-23 16:36:34 -03:00
28_regex
29_atomics libstdc++: Value-initialize std::atomic for C++20 (P0883R2) 2020-01-13 13:22:28 +00:00
30_threads libstdc++: Add <=> to thread::id 2020-02-20 11:30:19 +00:00
abi
backward
config
data
decimal
experimental libstdc++: Fix testsuite failures and warnings due to is_pod deprecation 2020-01-09 21:31:50 +00:00
ext
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
std libstdc++: LWG 3397 basic_istream_view::iterator should not provide iterator_category 2020-02-25 13:04:33 -05:00
tr1
tr2
util libstdc++: "safe" in several library names is misleading (LWG 3379) 2020-02-19 12:46:57 +00:00
Makefile.am
Makefile.in Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00