gcc/libstdc++-v3/testsuite
Jonathan Wakely 7a6a29c455 libstdc++: Define std::ranges::to for C++23 (P1206R7) [PR111055]
This adds the std::ranges::to functions for C++23. The rest of P1206R7
is not yet implemented, i.e. the new constructors taking the
std::from_range tag, and the new insert_range, assign_range, etc. member
functions. std::ranges::to works with the standard containers even
without the new constructors, so this is useful immediately.

The __cpp_lib_ranges_to_container feature test macro can be defined now,
because that only indicates support for the changes in <ranges>, which
are implemented by this patch. The __cpp_lib_containers_ranges macro
will be defined once all containers support the new member functions.

libstdc++-v3/ChangeLog:

	PR libstdc++/111055
	* include/bits/ranges_base.h (from_range_t): Define new tag
	type.
	(from_range): Define new tag object.
	* include/bits/version.def (ranges_to_container): Define.
	* include/bits/version.h: Regenerate.
	* include/std/ranges (ranges::to): Define.
	* testsuite/std/ranges/conv/1.cc: New test.
	* testsuite/std/ranges/conv/2_neg.cc: New test.
	* testsuite/std/ranges/conv/version.cc: New test.
2023-11-23 17:48:41 +00:00
..
17_intro libstdc++: Fix tests relying on operator new/delete overload 2023-08-23 06:35:24 +02:00
18_support libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
19_diagnostics libstdc++: Fix aligned formatting of stacktrace_entry and thread::id [PR112564] 2023-11-16 17:20:00 +00:00
20_util libstdc++: Add freestanding feature test macros (P2407R5) 2023-11-21 15:58:21 +00:00
21_strings libstdc++: Do not declare strtok for C++26 freestanding (P2937R0) 2023-11-21 15:58:21 +00:00
22_locale libstdc++: testsuite: Enhance codecvt_unicode with tests for length() 2023-10-21 11:54:00 +01:00
23_containers libstdc++: Add freestanding feature test macros (P2407R5) 2023-11-21 15:58:21 +00:00
24_iterators libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
25_algorithms libstdc++: Add freestanding feature test macros (P2407R5) 2023-11-21 15:58:21 +00:00
26_numerics libstdc++: Define C++26 saturation arithmetic functions (P0543R3) 2023-11-17 15:28:30 +00:00
27_io libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
28_regex libstdc++: Remove dg-options "-std=gnu++20" from remaining tests 2023-09-16 00:10:46 +01:00
29_atomics libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
30_threads libstdc++: Fix aligned formatting of stacktrace_entry and thread::id [PR112564] 2023-11-16 17:20:00 +00:00
abi Update copyright years. 2023-01-16 11:52:17 +01:00
backward Update copyright years. 2023-01-16 11:52:17 +01:00
config libstdc++: Remove trailing whitespace from dejagnu files 2023-09-07 17:05:54 +01:00
data
decimal Update copyright years. 2023-01-16 11:52:17 +01:00
experimental libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
ext c++: non-dependent assignment checking [PR63198, PR18474] 2023-09-18 14:47:52 -04:00
lib testsuite: Add dg-require-atomic-cmpxchg-word 2023-10-13 02:19:53 +02:00
libstdc++-abi libstdc++: Remove trailing whitespace from dejagnu files 2023-09-07 17:05:54 +01:00
libstdc++-dg libstdc++: Add log line to testsuite output 2023-09-15 21:57:40 +01:00
libstdc++-prettyprinters libstdc++: Remove trailing whitespace from dejagnu files 2023-09-07 17:05:54 +01:00
libstdc++-xmethods libstdc++: Fix std::deque::operator[] Xmethod [PR112491] 2023-11-15 11:16:49 +00:00
performance Update copyright years. 2023-01-16 11:52:17 +01:00
special_functions Update copyright years. 2023-01-16 11:52:17 +01:00
std libstdc++: Define std::ranges::to for C++23 (P1206R7) [PR111055] 2023-11-23 17:48:41 +00:00
tr1 libstdc++: Fix tr1/8_c_compatibility/cstdio/functions.cc regression with recent glibc 2023-10-13 09:09:32 +02:00
tr2 libstdc++: Fix std::tr2::dynamic_bitset support for alternate characters 2023-11-21 15:58:21 +00:00
util libstdc++: Fix access error in __gnu_test::uneq_allocator 2023-11-23 17:44:26 +00:00
Makefile.am libstdc++: Add support for running tests with multiple -std options 2023-09-15 21:57:38 +01:00
Makefile.in libstdc++: Add support for running tests with multiple -std options 2023-09-15 21:57:38 +01:00