|
17 | 17 |
|
18 | 18 | /* Constant Value
|
19 | 19 | __cpp_lib_allocator_traits_is_always_equal 201411L [C++17]
|
| 20 | + __cpp_lib_containers_ranges 202202L [C++23] |
20 | 21 | __cpp_lib_default_template_type_for_algorithm_values 202403L [C++26]
|
21 | 22 | __cpp_lib_erase_if 202002L [C++20]
|
22 | 23 | __cpp_lib_incomplete_container_elements 201505L [C++17]
|
23 | 24 | __cpp_lib_list_remove_return_type 201806L [C++20]
|
24 | 25 | __cpp_lib_nonmember_container_access 201411L [C++17]
|
25 |
| - __cpp_lib_ranges_to_container 202202L [C++23] |
26 | 26 | */
|
27 | 27 |
|
28 | 28 | #include <forward_list>
|
|
34 | 34 | # error "__cpp_lib_allocator_traits_is_always_equal should not be defined before c++17"
|
35 | 35 | # endif
|
36 | 36 |
|
| 37 | +# ifdef __cpp_lib_containers_ranges |
| 38 | +# error "__cpp_lib_containers_ranges should not be defined before c++23" |
| 39 | +# endif |
| 40 | + |
37 | 41 | # ifdef __cpp_lib_default_template_type_for_algorithm_values
|
38 | 42 | # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
|
39 | 43 | # endif
|
|
54 | 58 | # error "__cpp_lib_nonmember_container_access should not be defined before c++17"
|
55 | 59 | # endif
|
56 | 60 |
|
57 |
| -# ifdef __cpp_lib_ranges_to_container |
58 |
| -# error "__cpp_lib_ranges_to_container should not be defined before c++23" |
59 |
| -# endif |
60 |
| - |
61 | 61 | #elif TEST_STD_VER == 14
|
62 | 62 |
|
63 | 63 | # ifdef __cpp_lib_allocator_traits_is_always_equal
|
64 | 64 | # error "__cpp_lib_allocator_traits_is_always_equal should not be defined before c++17"
|
65 | 65 | # endif
|
66 | 66 |
|
| 67 | +# ifdef __cpp_lib_containers_ranges |
| 68 | +# error "__cpp_lib_containers_ranges should not be defined before c++23" |
| 69 | +# endif |
| 70 | + |
67 | 71 | # ifdef __cpp_lib_default_template_type_for_algorithm_values
|
68 | 72 | # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
|
69 | 73 | # endif
|
|
84 | 88 | # error "__cpp_lib_nonmember_container_access should not be defined before c++17"
|
85 | 89 | # endif
|
86 | 90 |
|
87 |
| -# ifdef __cpp_lib_ranges_to_container |
88 |
| -# error "__cpp_lib_ranges_to_container should not be defined before c++23" |
89 |
| -# endif |
90 |
| - |
91 | 91 | #elif TEST_STD_VER == 17
|
92 | 92 |
|
93 | 93 | # ifndef __cpp_lib_allocator_traits_is_always_equal
|
|
97 | 97 | # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++17"
|
98 | 98 | # endif
|
99 | 99 |
|
| 100 | +# ifdef __cpp_lib_containers_ranges |
| 101 | +# error "__cpp_lib_containers_ranges should not be defined before c++23" |
| 102 | +# endif |
| 103 | + |
100 | 104 | # ifdef __cpp_lib_default_template_type_for_algorithm_values
|
101 | 105 | # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
|
102 | 106 | # endif
|
|
123 | 127 | # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++17"
|
124 | 128 | # endif
|
125 | 129 |
|
126 |
| -# ifdef __cpp_lib_ranges_to_container |
127 |
| -# error "__cpp_lib_ranges_to_container should not be defined before c++23" |
128 |
| -# endif |
129 |
| - |
130 | 130 | #elif TEST_STD_VER == 20
|
131 | 131 |
|
132 | 132 | # ifndef __cpp_lib_allocator_traits_is_always_equal
|
|
136 | 136 | # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++20"
|
137 | 137 | # endif
|
138 | 138 |
|
| 139 | +# ifdef __cpp_lib_containers_ranges |
| 140 | +# error "__cpp_lib_containers_ranges should not be defined before c++23" |
| 141 | +# endif |
| 142 | + |
139 | 143 | # ifdef __cpp_lib_default_template_type_for_algorithm_values
|
140 | 144 | # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
|
141 | 145 | # endif
|
|
168 | 172 | # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++20"
|
169 | 173 | # endif
|
170 | 174 |
|
171 |
| -# ifdef __cpp_lib_ranges_to_container |
172 |
| -# error "__cpp_lib_ranges_to_container should not be defined before c++23" |
173 |
| -# endif |
174 |
| - |
175 | 175 | #elif TEST_STD_VER == 23
|
176 | 176 |
|
177 | 177 | # ifndef __cpp_lib_allocator_traits_is_always_equal
|
|
181 | 181 | # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++23"
|
182 | 182 | # endif
|
183 | 183 |
|
| 184 | +# ifndef __cpp_lib_containers_ranges |
| 185 | +# error "__cpp_lib_containers_ranges should be defined in c++23" |
| 186 | +# endif |
| 187 | +# if __cpp_lib_containers_ranges != 202202L |
| 188 | +# error "__cpp_lib_containers_ranges should have the value 202202L in c++23" |
| 189 | +# endif |
| 190 | + |
184 | 191 | # ifdef __cpp_lib_default_template_type_for_algorithm_values
|
185 | 192 | # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26"
|
186 | 193 | # endif
|
|
213 | 220 | # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++23"
|
214 | 221 | # endif
|
215 | 222 |
|
216 |
| -# ifndef __cpp_lib_ranges_to_container |
217 |
| -# error "__cpp_lib_ranges_to_container should be defined in c++23" |
218 |
| -# endif |
219 |
| -# if __cpp_lib_ranges_to_container != 202202L |
220 |
| -# error "__cpp_lib_ranges_to_container should have the value 202202L in c++23" |
221 |
| -# endif |
222 |
| - |
223 | 223 | #elif TEST_STD_VER > 23
|
224 | 224 |
|
225 | 225 | # ifndef __cpp_lib_allocator_traits_is_always_equal
|
|
229 | 229 | # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++26"
|
230 | 230 | # endif
|
231 | 231 |
|
| 232 | +# ifndef __cpp_lib_containers_ranges |
| 233 | +# error "__cpp_lib_containers_ranges should be defined in c++26" |
| 234 | +# endif |
| 235 | +# if __cpp_lib_containers_ranges != 202202L |
| 236 | +# error "__cpp_lib_containers_ranges should have the value 202202L in c++26" |
| 237 | +# endif |
| 238 | + |
232 | 239 | # if !defined(_LIBCPP_VERSION)
|
233 | 240 | # ifndef __cpp_lib_default_template_type_for_algorithm_values
|
234 | 241 | # error "__cpp_lib_default_template_type_for_algorithm_values should be defined in c++26"
|
|
270 | 277 | # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++26"
|
271 | 278 | # endif
|
272 | 279 |
|
273 |
| -# ifndef __cpp_lib_ranges_to_container |
274 |
| -# error "__cpp_lib_ranges_to_container should be defined in c++26" |
275 |
| -# endif |
276 |
| -# if __cpp_lib_ranges_to_container != 202202L |
277 |
| -# error "__cpp_lib_ranges_to_container should have the value 202202L in c++26" |
278 |
| -# endif |
279 |
| - |
280 | 280 | #endif // TEST_STD_VER > 23
|
281 | 281 |
|
0 commit comments