diff options
author | Patrick Palka <ppalka@redhat.com> | 2023-04-18 07:21:09 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2023-04-18 07:21:09 -0400 |
commit | 95525c5b8c2d6317b693d441520b7bc808cf9ec7 (patch) | |
tree | 6286d564f4a488d530d0743ba4d9dd98054f49b5 /libstdc++-v3/include/std/version | |
parent | 4ec4ceafcc04ec7bafb1857cf6d491030440a765 (diff) | |
download | gcc-95525c5b8c2d6317b693d441520b7bc808cf9ec7.zip gcc-95525c5b8c2d6317b693d441520b7bc808cf9ec7.tar.gz gcc-95525c5b8c2d6317b693d441520b7bc808cf9ec7.tar.bz2 |
libstdc++: Adding missing feature-test macros for C++23 ranges algos
This patch also renames __cpp_lib_fold to __cpp_lib_ranges_fold
as per the current draft standard.
libstdc++-v3/ChangeLog:
* include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
Define for C++23.
(__cpp_lib_ranges_iota): Likewise.
(__cpp_lib_ranges_find_last): Likewise.
(__cpp_lib_fold): Rename to ...
(__cpp_lib_ranges_fold): ... this.
* include/std/version: As above.
* testsuite/25_algorithms/fold_left/1.cc: Adjust after
renaming __cpp_lib_fold.
* testsuite/std/ranges/version_c++23.cc: Verify values
of the above feature-test macros.
Diffstat (limited to 'libstdc++-v3/include/std/version')
-rw-r--r-- | libstdc++-v3/include/std/version | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 9f31f25..027e571 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -341,7 +341,10 @@ #define __cpp_lib_ranges_as_rvalue 202207L #define __cpp_lib_ranges_as_const 202207L #define __cpp_lib_ranges_enumerate 202302L -#define __cpp_lib_fold 202207L +#define __cpp_lib_ranges_contains 202207L +#define __cpp_lib_ranges_iota 202202L +#define __cpp_lib_ranges_find_last 202207L +#define __cpp_lib_ranges_fold 202207L #if __cpp_constexpr_dynamic_alloc # if _GLIBCXX_HOSTED # define __cpp_lib_constexpr_bitset 202202L |