From Jason Turner

[version.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp92t6nkm8/{from.md → to.md} +261 -116
tmp/tmp92t6nkm8/{from.md → to.md} RENAMED
@@ -5,212 +5,357 @@ about the C++ standard library (e.g., version number and release date).
5
 
6
  Each of the macros defined in `<version>` is also defined after
7
  inclusion of any member of the set of library headers indicated in the
8
  corresponding comment in this synopsis.
9
 
10
- [*Note 1*: Future revisions of C++ might replace the values of these
11
- macros with greater values. — *end note*]
12
 
13
  ``` cpp
14
- #define __cpp_lib_addressof_constexpr 201603L // also in <memory>
 
 
 
15
  #define __cpp_lib_algorithm_iterator_requirements 202207L
16
  // also in <algorithm>, <numeric>, <memory>
 
17
  #define __cpp_lib_allocate_at_least 202302L // also in <memory>
18
  #define __cpp_lib_allocator_traits_is_always_equal 201411L
19
- // also in <memory>, <scoped_allocator>, <string>, <deque>, <forward_list>, <list>, <vector>,
20
- // <map>, <set>, <unordered_map>, <unordered_set>
21
- #define __cpp_lib_adaptor_iterator_pair_constructor 202106L // also in <stack>, <queue>
22
  #define __cpp_lib_any 201606L // also in <any>
23
- #define __cpp_lib_apply 201603L // also in <tuple>
24
  #define __cpp_lib_array_constexpr 201811L // also in <iterator>, <array>
25
- #define __cpp_lib_as_const 201510L // also in <utility>
26
  #define __cpp_lib_associative_heterogeneous_erasure 202110L
27
  // also in <map>, <set>, <unordered_map>, <unordered_set>
28
- #define __cpp_lib_assume_aligned 201811L // also in <memory>
29
- #define __cpp_lib_atomic_flag_test 201907L // also in <atomic>
30
- #define __cpp_lib_atomic_float 201711L // also in <atomic>
31
- #define __cpp_lib_atomic_is_always_lock_free 201603L // also in <atomic>
 
 
32
  #define __cpp_lib_atomic_lock_free_type_aliases 201907L // also in <atomic>
33
- #define __cpp_lib_atomic_ref 201806L // also in <atomic>
 
 
34
  #define __cpp_lib_atomic_shared_ptr 201711L // also in <memory>
35
- #define __cpp_lib_atomic_value_initialization 201911L // also in <atomic>, <memory>
36
- #define __cpp_lib_atomic_wait 201907L // also in <atomic>
37
  #define __cpp_lib_barrier 202302L // also in <barrier>
38
- #define __cpp_lib_bind_back 202202L // also in <functional>
39
- #define __cpp_lib_bind_front 201907L // also in <functional>
40
- #define __cpp_lib_bit_cast 201806L // also in <bit>
41
- #define __cpp_lib_bitops 201907L // also in <bit>
42
- #define __cpp_lib_bool_constant 201505L // also in <type_traits>
43
- #define __cpp_lib_bounded_array_traits 201902L // also in <type_traits>
 
44
  #define __cpp_lib_boyer_moore_searcher 201603L // also in <functional>
45
- #define __cpp_lib_byte 201603L // also in <cstddef>
46
- #define __cpp_lib_byteswap 202110L // also in <bit>
47
  #define __cpp_lib_char8_t 201907L
48
- // also in <atomic>, <filesystem>, <istream>, <limits>, <locale>, <ostream>, <string>, <string_view>
49
- #define __cpp_lib_chrono 201907L // also in <chrono>
 
50
  #define __cpp_lib_chrono_udls 201304L // also in <chrono>
51
  #define __cpp_lib_clamp 201603L // also in <algorithm>
52
- #define __cpp_lib_common_reference 202302L // also in <type_traits>
53
- #define __cpp_lib_common_reference_wrapper 202302L // also in <functional>
54
  #define __cpp_lib_complex_udls 201309L // also in <complex>
55
- #define __cpp_lib_concepts 202207L // also in <concepts>, <compare>
56
- #define __cpp_lib_constexpr_algorithms 201806L // also in <algorithm>, <utility>
 
 
 
57
  #define __cpp_lib_constexpr_bitset 202207L // also in <bitset>
58
- #define __cpp_lib_constexpr_charconv 202207L // also in <charconv>
59
- #define __cpp_lib_constexpr_cmath 202202L // also in <cmath>, <cstdlib>
60
- #define __cpp_lib_constexpr_complex 201711L // also in <complex>
 
61
  #define __cpp_lib_constexpr_dynamic_alloc 201907L // also in <memory>
62
- #define __cpp_lib_constexpr_functional 201907L // also in <functional>
63
- #define __cpp_lib_constexpr_iterator 201811L // also in <iterator>
64
- #define __cpp_lib_constexpr_memory 202202L // also in <memory>
 
 
 
 
 
 
 
 
 
65
  #define __cpp_lib_constexpr_numeric 201911L // also in <numeric>
 
 
 
66
  #define __cpp_lib_constexpr_string 201907L // also in <string>
67
  #define __cpp_lib_constexpr_string_view 201811L // also in <string_view>
68
- #define __cpp_lib_constexpr_tuple 201811L // also in <tuple>
69
- #define __cpp_lib_constexpr_typeinfo 202106L // also in <typeinfo>
70
- #define __cpp_lib_constexpr_utility 201811L // also in <utility>
 
 
71
  #define __cpp_lib_constexpr_vector 201907L // also in <vector>
 
 
72
  #define __cpp_lib_containers_ranges 202202L
73
  // also in <vector>, <list>, <forward_list>, <map>, <set>, <unordered_map>, <unordered_set>,
74
  // <deque>, <queue>, <stack>, <string>
75
- #define __cpp_lib_coroutine 201902L // also in <coroutine>
76
- #define __cpp_lib_destroying_delete 201806L // also in <new>
 
 
 
 
 
77
  #define __cpp_lib_enable_shared_from_this 201603L // also in <memory>
78
- #define __cpp_lib_endian 201907L // also in <bit>
79
  #define __cpp_lib_erase_if 202002L
80
  // also in <string>, <deque>, <forward_list>, <list>, <vector>, <map>, <set>, <unordered_map>,
81
  // <unordered_set>
82
- #define __cpp_lib_exchange_function 201304L // also in <utility>
 
83
  #define __cpp_lib_execution 201902L // also in <execution>
84
  #define __cpp_lib_expected 202211L // also in <expected>
85
  #define __cpp_lib_filesystem 201703L // also in <filesystem>
86
  #define __cpp_lib_flat_map 202207L // also in <flat_map>
87
  #define __cpp_lib_flat_set 202207L // also in <flat_set>
88
- #define __cpp_lib_format 202207L // also in <format>
 
89
  #define __cpp_lib_format_ranges 202207L // also in <format>
 
90
  #define __cpp_lib_formatters 202302L // also in <stacktrace>, <thread>
91
- #define __cpp_lib_forward_like 202207L // also in <utility>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  #define __cpp_lib_gcd_lcm 201606L // also in <numeric>
93
  #define __cpp_lib_generator 202207L // also in <generator>
94
  #define __cpp_lib_generic_associative_lookup 201304L // also in <map>, <set>
95
  #define __cpp_lib_generic_unordered_lookup 201811L
96
  // also in <unordered_map>, <unordered_set>
97
- #define __cpp_lib_hardware_interference_size 201703L // also in <new>
98
- #define __cpp_lib_has_unique_object_representations 201606L // also in <type_traits>
 
 
99
  #define __cpp_lib_hypot 201603L // also in <cmath>
100
  #define __cpp_lib_incomplete_container_elements 201505L
101
  // also in <forward_list>, <list>, <vector>
102
- #define __cpp_lib_int_pow2 202002L // also in <bit>
 
 
103
  #define __cpp_lib_integer_comparison_functions 202002L // also in <utility>
104
- #define __cpp_lib_integer_sequence 201304L // also in <utility>
105
- #define __cpp_lib_integral_constant_callable 201304L // also in <type_traits>
106
  #define __cpp_lib_interpolate 201902L // also in <cmath>, <numeric>
107
- #define __cpp_lib_invoke 201411L // also in <functional>
108
- #define __cpp_lib_invoke_r 202106L // also in <functional>
109
  #define __cpp_lib_ios_noreplace 202207L // also in <ios>
110
- #define __cpp_lib_is_aggregate 201703L // also in <type_traits>
111
- #define __cpp_lib_is_constant_evaluated 201811L // also in <type_traits>
112
- #define __cpp_lib_is_final 201402L // also in <type_traits>
113
- #define __cpp_lib_is_implicit_lifetime 202302L // also in <type_traits>
114
- #define __cpp_lib_is_invocable 201703L // also in <type_traits>
115
- #define __cpp_lib_is_layout_compatible 201907L // also in <type_traits>
116
- #define __cpp_lib_is_nothrow_convertible 201806L // also in <type_traits>
117
- #define __cpp_lib_is_null_pointer 201309L // also in <type_traits>
118
- #define __cpp_lib_is_pointer_interconvertible 201907L // also in <type_traits>
119
- #define __cpp_lib_is_scoped_enum 202011L // also in <type_traits>
120
- #define __cpp_lib_is_swappable 201603L // also in <type_traits>
 
 
 
121
  #define __cpp_lib_jthread 201911L // also in <stop_token>, <thread>
122
  #define __cpp_lib_latch 201907L // also in <latch>
123
- #define __cpp_lib_launder 201606L // also in <new>
 
124
  #define __cpp_lib_list_remove_return_type 201806L // also in <forward_list>, <list>
125
- #define __cpp_lib_logical_traits 201510L // also in <type_traits>
126
- #define __cpp_lib_make_from_tuple 201606L // also in <tuple>
127
- #define __cpp_lib_make_reverse_iterator 201402L // also in <iterator>
128
  #define __cpp_lib_make_unique 201304L // also in <memory>
129
  #define __cpp_lib_map_try_emplace 201411L // also in <map>
130
  #define __cpp_lib_math_constants 201907L // also in <numbers>
131
  #define __cpp_lib_math_special_functions 201603L // also in <cmath>
132
- #define __cpp_lib_mdspan 202207L // also in <mdspan>
133
  #define __cpp_lib_memory_resource 201603L // also in <memory_resource>
134
- #define __cpp_lib_modules 202207L
135
- #define __cpp_lib_move_iterator_concept 202207L // also in <iterator>
136
  #define __cpp_lib_move_only_function 202110L // also in <functional>
137
  #define __cpp_lib_node_extract 201606L
138
  // also in <map>, <set>, <unordered_map>, <unordered_set>
139
  #define __cpp_lib_nonmember_container_access 201411L
140
- // also in <array>, <deque>, <forward_list>, <iterator>, <list>, <map>, <regex>, <set>, <string>,
141
- // <unordered_map>, <unordered_set>, <vector>
142
- #define __cpp_lib_not_fn 201603L // also in <functional>
143
- #define __cpp_lib_null_iterators 201304L // also in <iterator>
144
- #define __cpp_lib_optional 202110L // also in <optional>
145
- #define __cpp_lib_out_ptr 202106L // also in <memory>
146
- #define __cpp_lib_parallel_algorithm 201603L // also in <algorithm>, <numeric>
 
 
 
 
 
 
147
  #define __cpp_lib_polymorphic_allocator 201902L // also in <memory_resource>
148
- #define __cpp_lib_print 202207L // also in <print>, <ostream>
149
  #define __cpp_lib_quoted_string_io 201304L // also in <iomanip>
150
- #define __cpp_lib_ranges 202302L
151
  // also in <algorithm>, <functional>, <iterator>, <memory>, <ranges>
152
- #define __cpp_lib_ranges_as_const 202207L // also in <ranges>
153
- #define __cpp_lib_ranges_as_rvalue 202207L // also in <ranges>
154
- #define __cpp_lib_ranges_cartesian_product 202207L // also in <ranges>
155
- #define __cpp_lib_ranges_chunk 202202L // also in <ranges>
156
- #define __cpp_lib_ranges_chunk_by 202202L // also in <ranges>
 
 
157
  #define __cpp_lib_ranges_contains 202207L // also in <algorithm>
158
- #define __cpp_lib_ranges_enumerate 202302L // also in <ranges>, <version>
159
  #define __cpp_lib_ranges_find_last 202207L // also in <algorithm>
160
  #define __cpp_lib_ranges_fold 202207L // also in <algorithm>
 
 
161
  #define __cpp_lib_ranges_iota 202202L // also in <numeric>
162
- #define __cpp_lib_ranges_join_with 202202L // also in <ranges>
163
- #define __cpp_lib_ranges_repeat 202207L // also in <ranges>
164
- #define __cpp_lib_ranges_slide 202202L // also in <ranges>
 
165
  #define __cpp_lib_ranges_starts_ends_with 202106L // also in <algorithm>
166
- #define __cpp_lib_ranges_stride 202207L // also in <ranges>
167
- #define __cpp_lib_ranges_to_container 202202L // also in <ranges>
168
- #define __cpp_lib_ranges_zip 202110L // also in <ranges>, <tuple>, <utility>
169
- #define __cpp_lib_raw_memory_algorithms 201606L // also in <memory>
170
- #define __cpp_lib_reference_from_temporary 202202L // also in <type_traits>
171
- #define __cpp_lib_remove_cvref 201711L // also in <type_traits>
172
- #define __cpp_lib_result_of_sfinae 201210L // also in <functional>, <type_traits>
 
 
 
 
 
 
 
173
  #define __cpp_lib_robust_nonmodifying_seq_ops 201304L // also in <algorithm>
174
  #define __cpp_lib_sample 201603L // also in <algorithm>
 
175
  #define __cpp_lib_scoped_lock 201703L // also in <mutex>
176
  #define __cpp_lib_semaphore 201907L // also in <semaphore>
 
177
  #define __cpp_lib_shared_mutex 201505L // also in <shared_mutex>
178
  #define __cpp_lib_shared_ptr_arrays 201707L // also in <memory>
179
  #define __cpp_lib_shared_ptr_weak_type 201606L // also in <memory>
180
  #define __cpp_lib_shared_timed_mutex 201402L // also in <shared_mutex>
181
  #define __cpp_lib_shift 202202L // also in <algorithm>
 
 
 
182
  #define __cpp_lib_smart_ptr_for_overwrite 202002L // also in <memory>
183
- #define __cpp_lib_source_location 201907L // also in <source_location>
184
- #define __cpp_lib_span 202002L // also in <span>
 
 
185
  #define __cpp_lib_spanstream 202106L // also in <spanstream>
186
- #define __cpp_lib_ssize 201902L // also in <iterator>
 
187
  #define __cpp_lib_stacktrace 202011L // also in <stacktrace>
188
- #define __cpp_lib_start_lifetime_as 202207L // also in <memory>
189
  #define __cpp_lib_starts_ends_with 201711L // also in <string>, <string_view>
190
  #define __cpp_lib_stdatomic_h 202011L // also in <stdatomic.h>
191
  #define __cpp_lib_string_contains 202011L // also in <string>, <string_view>
192
  #define __cpp_lib_string_resize_and_overwrite 202110L // also in <string>
 
193
  #define __cpp_lib_string_udls 201304L // also in <string>
194
- #define __cpp_lib_string_view 201803L // also in <string>, <string_view>
 
195
  #define __cpp_lib_syncbuf 201803L // also in <syncstream>
196
- #define __cpp_lib_three_way_comparison 201907L // also in <compare>
197
- #define __cpp_lib_to_address 201711L // also in <memory>
198
- #define __cpp_lib_to_array 201907L // also in <array>
199
- #define __cpp_lib_to_chars 201611L // also in <charconv>
200
- #define __cpp_lib_to_underlying 202102L // also in <utility>
201
- #define __cpp_lib_transformation_trait_aliases 201304L // also in <type_traits>
202
- #define __cpp_lib_transparent_operators 201510L // also in <memory>, <functional>
203
- #define __cpp_lib_tuple_like 202207L
 
 
 
 
 
 
 
204
  // also in <utility>, <tuple>, <map>, <unordered_map>
205
- #define __cpp_lib_tuple_element_t 201402L // also in <tuple>
206
- #define __cpp_lib_tuples_by_type 201304L // also in <utility>, <tuple>
207
- #define __cpp_lib_type_identity 201806L // also in <type_traits>
208
- #define __cpp_lib_type_trait_variable_templates 201510L // also in <type_traits>
209
- #define __cpp_lib_uncaught_exceptions 201411L // also in <exception>
210
  #define __cpp_lib_unordered_map_try_emplace 201411L // also in <unordered_map>
211
- #define __cpp_lib_unreachable 202202L // also in <utility>
212
- #define __cpp_lib_unwrap_ref 201811L // also in <type_traits>
213
- #define __cpp_lib_variant 202106L // also in <variant>
214
- #define __cpp_lib_void_t 201411L // also in <type_traits>
215
  ```
216
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  Each of the macros defined in `<version>` is also defined after
7
  inclusion of any member of the set of library headers indicated in the
8
  corresponding comment in this synopsis.
9
 
10
+ [*Note 1*: Future revisions of this document might replace the values
11
+ of these macros with greater values. — *end note*]
12
 
13
  ``` cpp
14
+ #define __cpp_lib_adaptor_iterator_pair_constructor 202106L // also in <stack>, <queue>
15
+ #define __cpp_lib_addressof_constexpr 201603L // freestanding, also in <memory>
16
+ #define __cpp_lib_algorithm_default_value_type 202403L
17
+ // also in <algorithm>, <ranges>, <string>, <deque>, <list>, <forward_list>, <vector>
18
  #define __cpp_lib_algorithm_iterator_requirements 202207L
19
  // also in <algorithm>, <numeric>, <memory>
20
+ #define __cpp_lib_aligned_accessor 202411L // also in <mdspan>
21
  #define __cpp_lib_allocate_at_least 202302L // also in <memory>
22
  #define __cpp_lib_allocator_traits_is_always_equal 201411L
23
+ // freestanding, also in <memory>, <scoped_allocator>, <string>, <deque>, <forward_list>, <list>,
24
+ // <vector>, <map>, <set>, <unordered_map>, <unordered_set>
 
25
  #define __cpp_lib_any 201606L // also in <any>
26
+ #define __cpp_lib_apply 202506L // freestanding, also in <tuple>, <type_traits>
27
  #define __cpp_lib_array_constexpr 201811L // also in <iterator>, <array>
28
+ #define __cpp_lib_as_const 201510L // freestanding, also in <utility>
29
  #define __cpp_lib_associative_heterogeneous_erasure 202110L
30
  // also in <map>, <set>, <unordered_map>, <unordered_set>
31
+ #define __cpp_lib_associative_heterogeneous_insertion 202306L
32
+ // also in <map>, <set>, <unordered_map>, <unordered_set>
33
+ #define __cpp_lib_assume_aligned 201811L // freestanding, also in <memory>
34
+ #define __cpp_lib_atomic_flag_test 201907L // freestanding, also in <atomic>
35
+ #define __cpp_lib_atomic_float 201711L // freestanding, also in <atomic>
36
+ #define __cpp_lib_atomic_is_always_lock_free 201603L // freestanding, also in <atomic>
37
  #define __cpp_lib_atomic_lock_free_type_aliases 201907L // also in <atomic>
38
+ #define __cpp_lib_atomic_min_max 202506L // freestanding, also in <atomic>
39
+ #define __cpp_lib_atomic_reductions 202506L // freestanding, also in <atomic>
40
+ #define __cpp_lib_atomic_ref 202411L // freestanding, also in <atomic>
41
  #define __cpp_lib_atomic_shared_ptr 201711L // also in <memory>
42
+ #define __cpp_lib_atomic_value_initialization 201911L // freestanding, also in <atomic>, <memory>
43
+ #define __cpp_lib_atomic_wait 201907L // freestanding, also in <atomic>
44
  #define __cpp_lib_barrier 202302L // also in <barrier>
45
+ #define __cpp_lib_bind_back 202306L // freestanding, also in <functional>
46
+ #define __cpp_lib_bind_front 202306L // freestanding, also in <functional>
47
+ #define __cpp_lib_bit_cast 201806L // freestanding, also in <bit>
48
+ #define __cpp_lib_bitops 201907L // freestanding, also in <bit>
49
+ #define __cpp_lib_bitset 202306L // also in <bitset>
50
+ #define __cpp_lib_bool_constant 201505L // freestanding, also in <type_traits>
51
+ #define __cpp_lib_bounded_array_traits 201902L // freestanding, also in <type_traits>
52
  #define __cpp_lib_boyer_moore_searcher 201603L // also in <functional>
53
+ #define __cpp_lib_byte 201603L // freestanding, also in <cstddef>
54
+ #define __cpp_lib_byteswap 202110L // freestanding, also in <bit>
55
  #define __cpp_lib_char8_t 201907L
56
+ // freestanding, also in <atomic>, <filesystem>, <istream>, <limits>, <locale>, <ostream>, <string>,
57
+ // <string_view>
58
+ #define __cpp_lib_chrono 202306L // also in <chrono>
59
  #define __cpp_lib_chrono_udls 201304L // also in <chrono>
60
  #define __cpp_lib_clamp 201603L // also in <algorithm>
61
+ #define __cpp_lib_common_reference 202302L // freestanding, also in <type_traits>
62
+ #define __cpp_lib_common_reference_wrapper 202302L // freestanding, also in <functional>
63
  #define __cpp_lib_complex_udls 201309L // also in <complex>
64
+ #define __cpp_lib_concepts 202207L
65
+ // freestanding, also in <concepts>, <compare>
66
+ #define __cpp_lib_constant_wrapper 202506L // freestanding, also in <type_traits>
67
+ #define __cpp_lib_constexpr_algorithms 202306L // also in <algorithm>, <utility>
68
+ #define __cpp_lib_constexpr_atomic 202411L // also in <atomic>
69
  #define __cpp_lib_constexpr_bitset 202207L // also in <bitset>
70
+ #define __cpp_lib_constexpr_charconv 202207L // freestanding, also in <charconv>
71
+ #define __cpp_lib_constexpr_cmath 202306L // also in <cmath>, <cstdlib>
72
+ #define __cpp_lib_constexpr_complex 202306L // also in <complex>
73
+ #define __cpp_lib_constexpr_deque 202502L // also in <deque>
74
  #define __cpp_lib_constexpr_dynamic_alloc 201907L // also in <memory>
75
+ #define __cpp_lib_constexpr_exceptions 202502L
76
+ // also in <exception>, <stdexcept>, <expected>, <optional>, <variant>, and <format>
77
+ #define __cpp_lib_constexpr_flat_map 202502L // also in <flat_map>
78
+ #define __cpp_lib_constexpr_flat_set 202502L // also in <flat_set>
79
+ #define __cpp_lib_constexpr_forward_list 202502L // also in <forward_list>
80
+ #define __cpp_lib_constexpr_functional 201907L // freestanding, also in <functional>
81
+ #define __cpp_lib_constexpr_inplace_vector 202502L // also in <inplace_vector>
82
+ #define __cpp_lib_constexpr_iterator 201811L // freestanding, also in <iterator>
83
+ #define __cpp_lib_constexpr_list 202502L // also in <list>
84
+ #define __cpp_lib_constexpr_map 202502L // also in <map>
85
+ #define __cpp_lib_constexpr_memory 202506L // freestanding, also in <memory>
86
+ #define __cpp_lib_constexpr_new 202406L // freestanding, also in <new>
87
  #define __cpp_lib_constexpr_numeric 201911L // also in <numeric>
88
+ #define __cpp_lib_constexpr_queue 202502L // also in <queue>
89
+ #define __cpp_lib_constexpr_set 202502L // also in <set>
90
+ #define __cpp_lib_constexpr_stack 202502L // also in <stack>
91
  #define __cpp_lib_constexpr_string 201907L // also in <string>
92
  #define __cpp_lib_constexpr_string_view 201811L // also in <string_view>
93
+ #define __cpp_lib_constexpr_tuple 201811L // freestanding, also in <tuple>
94
+ #define __cpp_lib_constexpr_typeinfo 202106L // freestanding, also in <typeinfo>
95
+ #define __cpp_lib_constexpr_unordered_map 202502L // also in <unordered_map>
96
+ #define __cpp_lib_constexpr_unordered_set 202502L // also in <unordered_set>
97
+ #define __cpp_lib_constexpr_utility 201811L // freestanding, also in <utility>
98
  #define __cpp_lib_constexpr_vector 201907L // also in <vector>
99
+ #define __cpp_lib_constrained_equality 202411L // freestanding,
100
+ // also in <utility>, <tuple>, <optional>, <variant>, <expected>
101
  #define __cpp_lib_containers_ranges 202202L
102
  // also in <vector>, <list>, <forward_list>, <map>, <set>, <unordered_map>, <unordered_set>,
103
  // <deque>, <queue>, <stack>, <string>
104
+ #define __cpp_lib_contracts 202502L // freestanding, also in <contracts>
105
+ #define __cpp_lib_copyable_function 202306L // also in <functional>
106
+ #define __cpp_lib_coroutine 201902L // freestanding, also in <coroutine>
107
+ #define __cpp_lib_counting_scope 202506L // also in <execution>
108
+ #define __cpp_lib_debugging 202403L // freestanding, also in <debugging>
109
+ #define __cpp_lib_define_static 202506L // freestanding, also in <meta>
110
+ #define __cpp_lib_destroying_delete 201806L // freestanding, also in <new>
111
  #define __cpp_lib_enable_shared_from_this 201603L // also in <memory>
112
+ #define __cpp_lib_endian 201907L // freestanding, also in <bit>
113
  #define __cpp_lib_erase_if 202002L
114
  // also in <string>, <deque>, <forward_list>, <list>, <vector>, <map>, <set>, <unordered_map>,
115
  // <unordered_set>
116
+ #define __cpp_lib_exception_ptr_cast 202506L // also in <exception>
117
+ #define __cpp_lib_exchange_function 201304L // freestanding, also in <utility>
118
  #define __cpp_lib_execution 201902L // also in <execution>
119
  #define __cpp_lib_expected 202211L // also in <expected>
120
  #define __cpp_lib_filesystem 201703L // also in <filesystem>
121
  #define __cpp_lib_flat_map 202207L // also in <flat_map>
122
  #define __cpp_lib_flat_set 202207L // also in <flat_set>
123
+ #define __cpp_lib_format 202311L // also in <format>
124
+ #define __cpp_lib_format_path 202506L // also in <filesystem>
125
  #define __cpp_lib_format_ranges 202207L // also in <format>
126
+ #define __cpp_lib_format_uchar 202311L // also in <format>
127
  #define __cpp_lib_formatters 202302L // also in <stacktrace>, <thread>
128
+ #define __cpp_lib_forward_like 202207L // freestanding, also in <utility>
129
+ #define __cpp_lib_freestanding_algorithm 202502L // freestanding, also in <algorithm>
130
+ #define __cpp_lib_freestanding_array 202311L // freestanding, also in <array>
131
+ #define __cpp_lib_freestanding_char_traits 202306L // freestanding, also in <string>
132
+ #define __cpp_lib_freestanding_charconv 202306L // freestanding, also in <charconv>
133
+ #define __cpp_lib_freestanding_cstdlib 202306L // freestanding, also in <cstdlib>, <cmath>
134
+ #define __cpp_lib_freestanding_cstring 202311L // freestanding, also in <cstring>
135
+ #define __cpp_lib_freestanding_cwchar 202306L // freestanding, also in <cwchar>
136
+ #define __cpp_lib_freestanding_errc 202306L
137
+ // freestanding, also in <cerrno>, <system_error>
138
+ #define __cpp_lib_freestanding_execution 202502L // freestanding, also in <execution>
139
+ #define __cpp_lib_freestanding_expected 202311L // freestanding, also in <expected>
140
+ #define __cpp_lib_freestanding_feature_test_macros 202306L // freestanding
141
+ #define __cpp_lib_freestanding_functional 202306L // freestanding, also in <functional>
142
+ #define __cpp_lib_freestanding_iterator 202306L // freestanding, also in <iterator>
143
+ #define __cpp_lib_freestanding_mdspan 202311L // freestanding, also in <mdspan>
144
+ #define __cpp_lib_freestanding_memory 202502L // freestanding, also in <memory>
145
+ #define __cpp_lib_freestanding_numeric 202502L // freestanding, also in <numeric>
146
+ #define __cpp_lib_freestanding_operator_new see below // freestanding, also in <new>
147
+ #define __cpp_lib_freestanding_optional 202506L // freestanding, also in <optional>
148
+ #define __cpp_lib_freestanding_random 202502L // freestanding, also in <random>
149
+ #define __cpp_lib_freestanding_ranges 202306L // freestanding, also in <ranges>
150
+ #define __cpp_lib_freestanding_ratio 202306L // freestanding, also in <ratio>
151
+ #define __cpp_lib_freestanding_string_view 202311L // freestanding, also in <string_view>
152
+ #define __cpp_lib_freestanding_tuple 202306L // freestanding, also in <tuple>
153
+ #define __cpp_lib_freestanding_utility 202306L // freestanding, also in <utility>
154
+ #define __cpp_lib_freestanding_variant 202311L // freestanding, also in <variant>
155
+ #define __cpp_lib_fstream_native_handle 202306L // also in <fstream>
156
+ #define __cpp_lib_function_ref 202306L // also in <functional>
157
  #define __cpp_lib_gcd_lcm 201606L // also in <numeric>
158
  #define __cpp_lib_generator 202207L // also in <generator>
159
  #define __cpp_lib_generic_associative_lookup 201304L // also in <map>, <set>
160
  #define __cpp_lib_generic_unordered_lookup 201811L
161
  // also in <unordered_map>, <unordered_set>
162
+ #define __cpp_lib_hardware_interference_size 201703L // freestanding, also in <new>
163
+ #define __cpp_lib_has_unique_object_representations 201606L // freestanding, also in <type_traits>
164
+ #define __cpp_lib_hazard_pointer 202306L // also in <hazard_pointer>
165
+ #define __cpp_lib_hive 202502L // also in <hive>
166
  #define __cpp_lib_hypot 201603L // also in <cmath>
167
  #define __cpp_lib_incomplete_container_elements 201505L
168
  // also in <forward_list>, <list>, <vector>
169
+ #define __cpp_lib_indirect 202502L // also in <memory>
170
+ #define __cpp_lib_inplace_vector 202406L // also in <inplace_vector>
171
+ #define __cpp_lib_int_pow2 202002L // freestanding, also in <bit>
172
  #define __cpp_lib_integer_comparison_functions 202002L // also in <utility>
173
+ #define __cpp_lib_integer_sequence 201304L // freestanding, also in <utility>
174
+ #define __cpp_lib_integral_constant_callable 201304L // freestanding, also in <type_traits>
175
  #define __cpp_lib_interpolate 201902L // also in <cmath>, <numeric>
176
+ #define __cpp_lib_invoke 201411L // freestanding, also in <functional>
177
+ #define __cpp_lib_invoke_r 202106L // freestanding, also in <functional>
178
  #define __cpp_lib_ios_noreplace 202207L // also in <ios>
179
+ #define __cpp_lib_is_aggregate 201703L // freestanding, also in <type_traits>
180
+ #define __cpp_lib_is_constant_evaluated 201811L // freestanding, also in <type_traits>
181
+ #define __cpp_lib_is_final 201402L // freestanding, also in <type_traits>
182
+ #define __cpp_lib_is_implicit_lifetime 202302L // freestanding, also in <type_traits>
183
+ #define __cpp_lib_is_invocable 201703L // freestanding, also in <type_traits>
184
+ #define __cpp_lib_is_layout_compatible 201907L // freestanding, also in <type_traits>
185
+ #define __cpp_lib_is_nothrow_convertible 201806L // freestanding, also in <type_traits>
186
+ #define __cpp_lib_is_null_pointer 201309L // freestanding, also in <type_traits>
187
+ #define __cpp_lib_is_pointer_interconvertible 201907L // freestanding, also in <type_traits>
188
+ #define __cpp_lib_is_scoped_enum 202011L // freestanding, also in <type_traits>
189
+ #define __cpp_lib_is_sufficiently_aligned 202411L // also in <memory>
190
+ #define __cpp_lib_is_swappable 201603L // freestanding, also in <type_traits>
191
+ #define __cpp_lib_is_virtual_base_of 202406L // freestanding, also in <type_traits>
192
+ #define __cpp_lib_is_within_lifetime 202306L // freestanding, also in <type_traits>
193
  #define __cpp_lib_jthread 201911L // also in <stop_token>, <thread>
194
  #define __cpp_lib_latch 201907L // also in <latch>
195
+ #define __cpp_lib_launder 201606L // freestanding, also in <new>
196
+ #define __cpp_lib_linalg 202412L // also in <linalg>
197
  #define __cpp_lib_list_remove_return_type 201806L // also in <forward_list>, <list>
198
+ #define __cpp_lib_logical_traits 201510L // freestanding, also in <type_traits>
199
+ #define __cpp_lib_make_from_tuple 201606L // freestanding, also in <tuple>
200
+ #define __cpp_lib_make_reverse_iterator 201402L // freestanding, also in <iterator>
201
  #define __cpp_lib_make_unique 201304L // also in <memory>
202
  #define __cpp_lib_map_try_emplace 201411L // also in <map>
203
  #define __cpp_lib_math_constants 201907L // also in <numbers>
204
  #define __cpp_lib_math_special_functions 201603L // also in <cmath>
205
+ #define __cpp_lib_mdspan 202406L // freestanding, also in <mdspan>
206
  #define __cpp_lib_memory_resource 201603L // also in <memory_resource>
207
+ #define __cpp_lib_modules 202207L // freestanding
208
+ #define __cpp_lib_move_iterator_concept 202207L // freestanding, also in <iterator>
209
  #define __cpp_lib_move_only_function 202110L // also in <functional>
210
  #define __cpp_lib_node_extract 201606L
211
  // also in <map>, <set>, <unordered_map>, <unordered_set>
212
  #define __cpp_lib_nonmember_container_access 201411L
213
+ // freestanding, also in <array>, <deque>, <forward_list>, <iterator>, <list>, <map>, <regex>, <set>,
214
+ // <string>, <unordered_map>, <unordered_set>, <vector>
215
+ #define __cpp_lib_not_fn 202306L // freestanding, also in <functional>
216
+ #define __cpp_lib_null_iterators 201304L // freestanding, also in <iterator>
217
+ #define __cpp_lib_observable_checkpoint 202506L // freestanding, also in <utility>
218
+ #define __cpp_lib_optional 202506L // also in <optional>
219
+ #define __cpp_lib_optional_range_support 202406L // freestanding, also in <optional>
220
+ #define __cpp_lib_out_ptr 202311L // freestanding, also in <memory>
221
+ #define __cpp_lib_parallel_algorithm 202506L
222
+ // also in <algorithm>, <numeric>, <memory>
223
+ #define __cpp_lib_parallel_scheduler 202506L // also in <execution>
224
+ #define __cpp_lib_philox_engine 202406L // also in <random>
225
+ #define __cpp_lib_polymorphic 202502L // also in <memory>
226
  #define __cpp_lib_polymorphic_allocator 201902L // also in <memory_resource>
227
+ #define __cpp_lib_print 202406L // also in <print>, <ostream>
228
  #define __cpp_lib_quoted_string_io 201304L // also in <iomanip>
229
+ #define __cpp_lib_ranges 202406L
230
  // also in <algorithm>, <functional>, <iterator>, <memory>, <ranges>
231
+ #define __cpp_lib_ranges_as_const 202311L // freestanding, also in <ranges>
232
+ #define __cpp_lib_ranges_as_rvalue 202207L // freestanding, also in <ranges>
233
+ #define __cpp_lib_ranges_cache_latest 202411L // freestanding, also in <ranges>
234
+ #define __cpp_lib_ranges_cartesian_product 202207L // freestanding, also in <ranges>
235
+ #define __cpp_lib_ranges_chunk 202202L // freestanding, also in <ranges>
236
+ #define __cpp_lib_ranges_chunk_by 202202L // freestanding, also in <ranges>
237
+ #define __cpp_lib_ranges_concat 202403L // freestanding, also in <ranges>
238
  #define __cpp_lib_ranges_contains 202207L // also in <algorithm>
239
+ #define __cpp_lib_ranges_enumerate 202302L // also in <ranges>
240
  #define __cpp_lib_ranges_find_last 202207L // also in <algorithm>
241
  #define __cpp_lib_ranges_fold 202207L // also in <algorithm>
242
+ #define __cpp_lib_ranges_generate_random 202403L // also in <random>
243
+ #define __cpp_lib_ranges_indices 202506L // also in <ranges>
244
  #define __cpp_lib_ranges_iota 202202L // also in <numeric>
245
+ #define __cpp_lib_ranges_join_with 202202L // freestanding, also in <ranges>
246
+ #define __cpp_lib_ranges_repeat 202207L // freestanding, also in <ranges>
247
+ #define __cpp_lib_ranges_reserve_hint 202502L // also in <ranges>
248
+ #define __cpp_lib_ranges_slide 202202L // freestanding, also in <ranges>
249
  #define __cpp_lib_ranges_starts_ends_with 202106L // also in <algorithm>
250
+ #define __cpp_lib_ranges_stride 202207L // freestanding, also in <ranges>
251
+ #define __cpp_lib_ranges_to_container 202202L // freestanding, also in <ranges>
252
+ #define __cpp_lib_ranges_to_input 202502L // freestanding, also in <ranges>
253
+ #define __cpp_lib_ranges_zip 202110L
254
+ // freestanding, also in <ranges>, <tuple>, <utility>
255
+ #define __cpp_lib_ratio 202306L // freestanding, also in <ratio>
256
+ #define __cpp_lib_raw_memory_algorithms 202411L // also in <memory>
257
+ #define __cpp_lib_rcu 202306L // also in <rcu>
258
+ #define __cpp_lib_reference_from_temporary 202202L // freestanding, also in <type_traits>
259
+ #define __cpp_lib_reference_wrapper 202403L // freestanding, also in <functional>
260
+ #define __cpp_lib_reflection 202506L // also in <meta>
261
+ #define __cpp_lib_remove_cvref 201711L // freestanding, also in <type_traits>
262
+ #define __cpp_lib_result_of_sfinae 201210L
263
+ // freestanding, also in <functional>, <type_traits>
264
  #define __cpp_lib_robust_nonmodifying_seq_ops 201304L // also in <algorithm>
265
  #define __cpp_lib_sample 201603L // also in <algorithm>
266
+ #define __cpp_lib_saturation_arithmetic 202311L // also in <numeric>
267
  #define __cpp_lib_scoped_lock 201703L // also in <mutex>
268
  #define __cpp_lib_semaphore 201907L // also in <semaphore>
269
+ #define __cpp_lib_senders 202506L // also in <execution>
270
  #define __cpp_lib_shared_mutex 201505L // also in <shared_mutex>
271
  #define __cpp_lib_shared_ptr_arrays 201707L // also in <memory>
272
  #define __cpp_lib_shared_ptr_weak_type 201606L // also in <memory>
273
  #define __cpp_lib_shared_timed_mutex 201402L // also in <shared_mutex>
274
  #define __cpp_lib_shift 202202L // also in <algorithm>
275
+ #define __cpp_lib_simd 202506L // also in <simd>
276
+ #define __cpp_lib_simd_complex 202502L // also in <simd>
277
+ #define __cpp_lib_simd_permutations 202506L // also in <simd>
278
  #define __cpp_lib_smart_ptr_for_overwrite 202002L // also in <memory>
279
+ #define __cpp_lib_smart_ptr_owner_equality 202306L // also in <memory>
280
+ #define __cpp_lib_source_location 201907L // freestanding, also in <source_location>
281
+ #define __cpp_lib_span 202311L // freestanding, also in <span>
282
+ #define __cpp_lib_span_initializer_list 202311L // freestanding, also in <span>
283
  #define __cpp_lib_spanstream 202106L // also in <spanstream>
284
+ #define __cpp_lib_ssize 201902L // freestanding, also in <iterator>
285
+ #define __cpp_lib_sstream_from_string_view 202306L // also in <sstream>
286
  #define __cpp_lib_stacktrace 202011L // also in <stacktrace>
287
+ #define __cpp_lib_start_lifetime_as 202207L // freestanding, also in <memory>
288
  #define __cpp_lib_starts_ends_with 201711L // also in <string>, <string_view>
289
  #define __cpp_lib_stdatomic_h 202011L // also in <stdatomic.h>
290
  #define __cpp_lib_string_contains 202011L // also in <string>, <string_view>
291
  #define __cpp_lib_string_resize_and_overwrite 202110L // also in <string>
292
+ #define __cpp_lib_string_subview 202506L // also in <string>, <string_view>
293
  #define __cpp_lib_string_udls 201304L // also in <string>
294
+ #define __cpp_lib_string_view 202403L // also in <string>, <string_view>
295
+ #define __cpp_lib_submdspan 202411L // freestanding, also in <mdspan>
296
  #define __cpp_lib_syncbuf 201803L // also in <syncstream>
297
+ #define __cpp_lib_task 202506L // also in <execution>
298
+ #define __cpp_lib_text_encoding 202306L // also in <text_encoding>
299
+ #define __cpp_lib_three_way_comparison 201907L // freestanding, also in <compare>
300
+ #define __cpp_lib_to_address 201711L // freestanding, also in <memory>
301
+ #define __cpp_lib_to_array 201907L // freestanding, also in <array>
302
+ #define __cpp_lib_to_chars 202306L // also in <charconv>
303
+ #define __cpp_lib_to_string 202306L // also in <string>
304
+ #define __cpp_lib_to_underlying 202102L // freestanding, also in <utility>
305
+ #define __cpp_lib_transformation_trait_aliases 201304L // freestanding, also in <type_traits>
306
+ #define __cpp_lib_transparent_operators 201510L
307
+ // freestanding, also in <memory>, <functional>
308
+ #define __cpp_lib_trivially_relocatable 202502L
309
+ // freestanding, also in <memory>, <type_traits>
310
+ #define __cpp_lib_tuple_element_t 201402L // freestanding, also in <tuple>
311
+ #define __cpp_lib_tuple_like 202311L
312
  // also in <utility>, <tuple>, <map>, <unordered_map>
313
+ #define __cpp_lib_tuples_by_type 201304L // freestanding, also in <utility>, <tuple>
314
+ #define __cpp_lib_type_identity 201806L // freestanding, also in <type_traits>
315
+ #define __cpp_lib_type_order 202506L // also in <compare>
316
+ #define __cpp_lib_type_trait_variable_templates 201510L // freestanding, also in <type_traits>
317
+ #define __cpp_lib_uncaught_exceptions 201411L // freestanding, also in <exception>
318
  #define __cpp_lib_unordered_map_try_emplace 201411L // also in <unordered_map>
319
+ #define __cpp_lib_unreachable 202202L // freestanding, also in <utility>
320
+ #define __cpp_lib_unwrap_ref 201811L // freestanding, also in <type_traits>
321
+ #define __cpp_lib_variant 202306L // also in <variant>
322
+ #define __cpp_lib_void_t 201411L // freestanding, also in <type_traits>
323
  ```
324
 
325
+ Additionally, each of the following macros is defined in a hardened
326
+ implementation:
327
+
328
+ ``` cpp
329
+ #define __cpp_lib_hardened_array 202502L // also in <array>
330
+ #define __cpp_lib_hardened_basic_stacktrace 202506L // also in <stacktrace>
331
+ #define __cpp_lib_hardened_basic_string 202502L // also in <string>
332
+ #define __cpp_lib_hardened_basic_string_view 202502L // also in <string_view>
333
+ #define __cpp_lib_hardened_bitset 202502L // also in <bitset>
334
+ #define __cpp_lib_hardened_common_iterator 202506L // also in <iterator>
335
+ #define __cpp_lib_hardened_counted_iterator 202506L // also in <iterator>
336
+ #define __cpp_lib_hardened_deque 202502L // also in <deque>
337
+ #define __cpp_lib_hardened_expected 202502L // also in <expected>
338
+ #define __cpp_lib_hardened_forward_list 202502L // also in <forward_list>
339
+ #define __cpp_lib_hardened_inplace_vector 202502L // also in <inplace_vector>
340
+ #define __cpp_lib_hardened_list 202502L // also in <list>
341
+ #define __cpp_lib_hardened_mdspan 202502L // also in <mdspan>
342
+ #define __cpp_lib_hardened_optional 202502L // also in <optional>
343
+ #define __cpp_lib_hardened_shared_ptr_array 202506L // also in <memory>
344
+ #define __cpp_lib_hardened_span 202502L // also in <span>
345
+ #define __cpp_lib_hardened_valarray 202502L // also in <valarray>
346
+ #define __cpp_lib_hardened_vector 202502L // also in <vector>
347
+ #define __cpp_lib_hardened_view_interface 202506L // also in <ranges>
348
+ ```
349
+
350
+ The macro `__cpp_lib_freestanding_operator_new` is defined to the
351
+ integer literal `202306L` if all the default versions of the replaceable
352
+ global allocation functions meet the requirements of a hosted
353
+ implementation, and to the integer literal `0` otherwise [[new.delete]].
354
+
355
+ *Recommended practice:* Freestanding implementations should only define
356
+ a macro from `<version>` if the implementation provides the
357
+ corresponding facility in its entirety.
358
+
359
+ *Recommended practice:* A non-hardened implementation should not define
360
+ macros from `<version>` required for hardened implementations.
361
+