1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // WARNING: This test was generated by generate_feature_test_macro_components.py 10 // and should not be edited manually. 11 // 12 // clang-format off 13 14 // <version> 15 16 // Test the feature test macros defined by <version> 17 18 /* Constant Value 19 __cpp_lib_adaptor_iterator_pair_constructor 202106L [C++23] 20 __cpp_lib_addressof_constexpr 201603L [C++17] 21 __cpp_lib_allocate_at_least 202302L [C++23] 22 __cpp_lib_allocator_traits_is_always_equal 201411L [C++17] 23 __cpp_lib_any 201606L [C++17] 24 __cpp_lib_apply 201603L [C++17] 25 __cpp_lib_array_constexpr 201603L [C++17] 26 201811L [C++20] 27 __cpp_lib_as_const 201510L [C++17] 28 __cpp_lib_associative_heterogeneous_erasure 202110L [C++23] 29 __cpp_lib_associative_heterogeneous_insertion 202306L [C++26] 30 __cpp_lib_assume_aligned 201811L [C++20] 31 __cpp_lib_atomic_flag_test 201907L [C++20] 32 __cpp_lib_atomic_float 201711L [C++20] 33 __cpp_lib_atomic_is_always_lock_free 201603L [C++17] 34 __cpp_lib_atomic_lock_free_type_aliases 201907L [C++20] 35 __cpp_lib_atomic_min_max 202403L [C++26] 36 __cpp_lib_atomic_ref 201806L [C++20] 37 __cpp_lib_atomic_shared_ptr 201711L [C++20] 38 __cpp_lib_atomic_value_initialization 201911L [C++20] 39 __cpp_lib_atomic_wait 201907L [C++20] 40 __cpp_lib_barrier 201907L [C++20] 41 __cpp_lib_bind_back 202202L [C++23] 42 __cpp_lib_bind_front 201907L [C++20] 43 202306L [C++26] 44 __cpp_lib_bit_cast 201806L [C++20] 45 __cpp_lib_bitops 201907L [C++20] 46 __cpp_lib_bitset 202306L [C++26] 47 __cpp_lib_bool_constant 201505L [C++17] 48 __cpp_lib_bounded_array_traits 201902L [C++20] 49 __cpp_lib_boyer_moore_searcher 201603L [C++17] 50 __cpp_lib_byte 201603L [C++17] 51 __cpp_lib_byteswap 202110L [C++23] 52 __cpp_lib_char8_t 201907L [C++20] 53 __cpp_lib_chrono 201611L [C++17] 54 __cpp_lib_chrono_udls 201304L [C++14] 55 __cpp_lib_clamp 201603L [C++17] 56 __cpp_lib_complex_udls 201309L [C++14] 57 __cpp_lib_concepts 202002L [C++20] 58 __cpp_lib_constexpr_algorithms 201806L [C++20] 59 __cpp_lib_constexpr_bitset 202207L [C++23] 60 __cpp_lib_constexpr_charconv 202207L [C++23] 61 __cpp_lib_constexpr_cmath 202202L [C++23] 62 __cpp_lib_constexpr_complex 201711L [C++20] 63 __cpp_lib_constexpr_dynamic_alloc 201907L [C++20] 64 __cpp_lib_constexpr_functional 201907L [C++20] 65 __cpp_lib_constexpr_iterator 201811L [C++20] 66 __cpp_lib_constexpr_memory 201811L [C++20] 67 202202L [C++23] 68 __cpp_lib_constexpr_new 202406L [C++26] 69 __cpp_lib_constexpr_numeric 201911L [C++20] 70 __cpp_lib_constexpr_string 201907L [C++20] 71 __cpp_lib_constexpr_string_view 201811L [C++20] 72 __cpp_lib_constexpr_tuple 201811L [C++20] 73 __cpp_lib_constexpr_typeinfo 202106L [C++23] 74 __cpp_lib_constexpr_utility 201811L [C++20] 75 __cpp_lib_constexpr_vector 201907L [C++20] 76 __cpp_lib_constrained_equality 202403L [C++26] 77 __cpp_lib_containers_ranges 202202L [C++23] 78 __cpp_lib_copyable_function 202306L [C++26] 79 __cpp_lib_coroutine 201902L [C++20] 80 __cpp_lib_debugging 202311L [C++26] 81 __cpp_lib_default_template_type_for_algorithm_values 202403L [C++26] 82 __cpp_lib_destroying_delete 201806L [C++20] 83 __cpp_lib_enable_shared_from_this 201603L [C++17] 84 __cpp_lib_endian 201907L [C++20] 85 __cpp_lib_erase_if 202002L [C++20] 86 __cpp_lib_exchange_function 201304L [C++14] 87 __cpp_lib_execution 201603L [C++17] 88 201902L [C++20] 89 __cpp_lib_expected 202211L [C++23] 90 __cpp_lib_filesystem 201703L [C++17] 91 __cpp_lib_format 202106L [C++20] 92 __cpp_lib_format_path 202403L [C++26] 93 __cpp_lib_format_ranges 202207L [C++23] 94 __cpp_lib_format_uchar 202311L [C++20] 95 __cpp_lib_formatters 202302L [C++23] 96 __cpp_lib_forward_like 202207L [C++23] 97 __cpp_lib_freestanding_algorithm 202311L [C++26] 98 __cpp_lib_freestanding_array 202311L [C++26] 99 __cpp_lib_freestanding_cstring 202306L [C++26] 100 __cpp_lib_freestanding_expected 202311L [C++26] 101 __cpp_lib_freestanding_mdspan 202311L [C++26] 102 __cpp_lib_freestanding_optional 202311L [C++26] 103 __cpp_lib_freestanding_string_view 202311L [C++26] 104 __cpp_lib_freestanding_variant 202311L [C++26] 105 __cpp_lib_fstream_native_handle 202306L [C++26] 106 __cpp_lib_function_ref 202306L [C++26] 107 __cpp_lib_gcd_lcm 201606L [C++17] 108 __cpp_lib_generate_random 202403L [C++26] 109 __cpp_lib_generic_associative_lookup 201304L [C++14] 110 __cpp_lib_generic_unordered_lookup 201811L [C++20] 111 __cpp_lib_hardware_interference_size 201703L [C++17] 112 __cpp_lib_has_unique_object_representations 201606L [C++17] 113 __cpp_lib_hazard_pointer 202306L [C++26] 114 __cpp_lib_hypot 201603L [C++17] 115 __cpp_lib_incomplete_container_elements 201505L [C++17] 116 __cpp_lib_inplace_vector 202406L [C++26] 117 __cpp_lib_int_pow2 202002L [C++20] 118 __cpp_lib_integer_comparison_functions 202002L [C++20] 119 __cpp_lib_integer_sequence 201304L [C++14] 120 __cpp_lib_integral_constant_callable 201304L [C++14] 121 __cpp_lib_interpolate 201902L [C++20] 122 __cpp_lib_invoke 201411L [C++17] 123 __cpp_lib_invoke_r 202106L [C++23] 124 __cpp_lib_ios_noreplace 202207L [C++23] 125 __cpp_lib_is_aggregate 201703L [C++17] 126 __cpp_lib_is_constant_evaluated 201811L [C++20] 127 __cpp_lib_is_final 201402L [C++14] 128 __cpp_lib_is_invocable 201703L [C++17] 129 __cpp_lib_is_layout_compatible 201907L [C++20] 130 __cpp_lib_is_nothrow_convertible 201806L [C++20] 131 __cpp_lib_is_null_pointer 201309L [C++14] 132 __cpp_lib_is_pointer_interconvertible 201907L [C++20] 133 __cpp_lib_is_scoped_enum 202011L [C++23] 134 __cpp_lib_is_swappable 201603L [C++17] 135 __cpp_lib_is_virtual_base_of 202406L [C++26] 136 __cpp_lib_is_within_lifetime 202306L [C++26] 137 __cpp_lib_jthread 201911L [C++20] 138 __cpp_lib_latch 201907L [C++20] 139 __cpp_lib_launder 201606L [C++17] 140 __cpp_lib_linalg 202311L [C++26] 141 __cpp_lib_list_remove_return_type 201806L [C++20] 142 __cpp_lib_logical_traits 201510L [C++17] 143 __cpp_lib_make_from_tuple 201606L [C++17] 144 __cpp_lib_make_reverse_iterator 201402L [C++14] 145 __cpp_lib_make_unique 201304L [C++14] 146 __cpp_lib_map_try_emplace 201411L [C++17] 147 __cpp_lib_math_constants 201907L [C++20] 148 __cpp_lib_math_special_functions 201603L [C++17] 149 __cpp_lib_mdspan 202207L [C++23] 150 __cpp_lib_memory_resource 201603L [C++17] 151 __cpp_lib_modules 202207L [C++23] 152 __cpp_lib_move_iterator_concept 202207L [C++20] 153 __cpp_lib_move_only_function 202110L [C++23] 154 __cpp_lib_node_extract 201606L [C++17] 155 __cpp_lib_nonmember_container_access 201411L [C++17] 156 __cpp_lib_not_fn 201603L [C++17] 157 __cpp_lib_null_iterators 201304L [C++14] 158 __cpp_lib_optional 201606L [C++17] 159 202110L [C++23] 160 __cpp_lib_optional_range_support 202406L [C++26] 161 __cpp_lib_out_ptr 202106L [C++23] 162 202311L [C++26] 163 __cpp_lib_parallel_algorithm 201603L [C++17] 164 __cpp_lib_philox_engine 202406L [C++26] 165 __cpp_lib_polymorphic_allocator 201902L [C++20] 166 __cpp_lib_print 202207L [C++23] 167 __cpp_lib_quoted_string_io 201304L [C++14] 168 __cpp_lib_ranges 202207L [C++20] 169 __cpp_lib_ranges_as_const 202207L [C++23] 170 __cpp_lib_ranges_as_rvalue 202207L [C++23] 171 __cpp_lib_ranges_chunk 202202L [C++23] 172 __cpp_lib_ranges_chunk_by 202202L [C++23] 173 __cpp_lib_ranges_concat 202403L [C++26] 174 __cpp_lib_ranges_contains 202207L [C++23] 175 __cpp_lib_ranges_iota 202202L [C++23] 176 __cpp_lib_ranges_join_with 202202L [C++23] 177 __cpp_lib_ranges_repeat 202207L [C++23] 178 __cpp_lib_ranges_slide 202202L [C++23] 179 __cpp_lib_ranges_starts_ends_with 202106L [C++23] 180 __cpp_lib_ranges_to_container 202202L [C++23] 181 __cpp_lib_ranges_zip 202110L [C++23] 182 __cpp_lib_ratio 202306L [C++26] 183 __cpp_lib_raw_memory_algorithms 201606L [C++17] 184 __cpp_lib_rcu 202306L [C++26] 185 __cpp_lib_reference_from_temporary 202202L [C++23] 186 __cpp_lib_reference_wrapper 202403L [C++26] 187 __cpp_lib_remove_cvref 201711L [C++20] 188 __cpp_lib_result_of_sfinae 201210L [C++14] 189 __cpp_lib_robust_nonmodifying_seq_ops 201304L [C++14] 190 __cpp_lib_sample 201603L [C++17] 191 __cpp_lib_saturation_arithmetic 202311L [C++26] 192 __cpp_lib_scoped_lock 201703L [C++17] 193 __cpp_lib_semaphore 201907L [C++20] 194 __cpp_lib_senders 202406L [C++26] 195 __cpp_lib_shared_mutex 201505L [C++17] 196 __cpp_lib_shared_ptr_arrays 201611L [C++17] 197 201707L [C++20] 198 __cpp_lib_shared_ptr_weak_type 201606L [C++17] 199 __cpp_lib_shared_timed_mutex 201402L [C++14] 200 __cpp_lib_shift 201806L [C++20] 201 __cpp_lib_smart_ptr_for_overwrite 202002L [C++20] 202 __cpp_lib_smart_ptr_owner_equality 202306L [C++26] 203 __cpp_lib_source_location 201907L [C++20] 204 __cpp_lib_span 202002L [C++20] 205 __cpp_lib_span_at 202311L [C++26] 206 __cpp_lib_span_initializer_list 202311L [C++26] 207 __cpp_lib_spanstream 202106L [C++23] 208 __cpp_lib_ssize 201902L [C++20] 209 __cpp_lib_sstream_from_string_view 202306L [C++26] 210 __cpp_lib_stacktrace 202011L [C++23] 211 __cpp_lib_starts_ends_with 201711L [C++20] 212 __cpp_lib_stdatomic_h 202011L [C++23] 213 __cpp_lib_string_contains 202011L [C++23] 214 __cpp_lib_string_resize_and_overwrite 202110L [C++23] 215 __cpp_lib_string_udls 201304L [C++14] 216 __cpp_lib_string_view 201606L [C++17] 217 201803L [C++20] 218 __cpp_lib_submdspan 202306L [C++26] 219 __cpp_lib_syncbuf 201803L [C++20] 220 __cpp_lib_text_encoding 202306L [C++26] 221 __cpp_lib_three_way_comparison 201711L [C++20] 222 __cpp_lib_to_address 201711L [C++20] 223 __cpp_lib_to_array 201907L [C++20] 224 __cpp_lib_to_chars 201611L [C++17] 225 202306L [C++26] 226 __cpp_lib_to_string 202306L [C++26] 227 __cpp_lib_to_underlying 202102L [C++23] 228 __cpp_lib_transformation_trait_aliases 201304L [C++14] 229 __cpp_lib_transparent_operators 201210L [C++14] 230 201510L [C++17] 231 __cpp_lib_tuple_element_t 201402L [C++14] 232 __cpp_lib_tuple_like 202207L [C++23] 233 202311L [C++26] 234 __cpp_lib_tuples_by_type 201304L [C++14] 235 __cpp_lib_type_identity 201806L [C++20] 236 __cpp_lib_type_trait_variable_templates 201510L [C++17] 237 __cpp_lib_uncaught_exceptions 201411L [C++17] 238 __cpp_lib_unordered_map_try_emplace 201411L [C++17] 239 __cpp_lib_unreachable 202202L [C++23] 240 __cpp_lib_unwrap_ref 201811L [C++20] 241 __cpp_lib_variant 202102L [C++17] 242 __cpp_lib_void_t 201411L [C++17] 243 */ 244 245 #include <version> 246 #include "test_macros.h" 247 248 #if TEST_STD_VER < 14 249 250 # ifdef __cpp_lib_adaptor_iterator_pair_constructor 251 # error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23" 252 # endif 253 254 # ifdef __cpp_lib_addressof_constexpr 255 # error "__cpp_lib_addressof_constexpr should not be defined before c++17" 256 # endif 257 258 # ifdef __cpp_lib_allocate_at_least 259 # error "__cpp_lib_allocate_at_least should not be defined before c++23" 260 # endif 261 262 # ifdef __cpp_lib_allocator_traits_is_always_equal 263 # error "__cpp_lib_allocator_traits_is_always_equal should not be defined before c++17" 264 # endif 265 266 # ifdef __cpp_lib_any 267 # error "__cpp_lib_any should not be defined before c++17" 268 # endif 269 270 # ifdef __cpp_lib_apply 271 # error "__cpp_lib_apply should not be defined before c++17" 272 # endif 273 274 # ifdef __cpp_lib_array_constexpr 275 # error "__cpp_lib_array_constexpr should not be defined before c++17" 276 # endif 277 278 # ifdef __cpp_lib_as_const 279 # error "__cpp_lib_as_const should not be defined before c++17" 280 # endif 281 282 # ifdef __cpp_lib_associative_heterogeneous_erasure 283 # error "__cpp_lib_associative_heterogeneous_erasure should not be defined before c++23" 284 # endif 285 286 # ifdef __cpp_lib_associative_heterogeneous_insertion 287 # error "__cpp_lib_associative_heterogeneous_insertion should not be defined before c++26" 288 # endif 289 290 # ifdef __cpp_lib_assume_aligned 291 # error "__cpp_lib_assume_aligned should not be defined before c++20" 292 # endif 293 294 # ifdef __cpp_lib_atomic_flag_test 295 # error "__cpp_lib_atomic_flag_test should not be defined before c++20" 296 # endif 297 298 # ifdef __cpp_lib_atomic_float 299 # error "__cpp_lib_atomic_float should not be defined before c++20" 300 # endif 301 302 # ifdef __cpp_lib_atomic_is_always_lock_free 303 # error "__cpp_lib_atomic_is_always_lock_free should not be defined before c++17" 304 # endif 305 306 # ifdef __cpp_lib_atomic_lock_free_type_aliases 307 # error "__cpp_lib_atomic_lock_free_type_aliases should not be defined before c++20" 308 # endif 309 310 # ifdef __cpp_lib_atomic_min_max 311 # error "__cpp_lib_atomic_min_max should not be defined before c++26" 312 # endif 313 314 # ifdef __cpp_lib_atomic_ref 315 # error "__cpp_lib_atomic_ref should not be defined before c++20" 316 # endif 317 318 # ifdef __cpp_lib_atomic_shared_ptr 319 # error "__cpp_lib_atomic_shared_ptr should not be defined before c++20" 320 # endif 321 322 # ifdef __cpp_lib_atomic_value_initialization 323 # error "__cpp_lib_atomic_value_initialization should not be defined before c++20" 324 # endif 325 326 # ifdef __cpp_lib_atomic_wait 327 # error "__cpp_lib_atomic_wait should not be defined before c++20" 328 # endif 329 330 # ifdef __cpp_lib_barrier 331 # error "__cpp_lib_barrier should not be defined before c++20" 332 # endif 333 334 # ifdef __cpp_lib_bind_back 335 # error "__cpp_lib_bind_back should not be defined before c++23" 336 # endif 337 338 # ifdef __cpp_lib_bind_front 339 # error "__cpp_lib_bind_front should not be defined before c++20" 340 # endif 341 342 # ifdef __cpp_lib_bit_cast 343 # error "__cpp_lib_bit_cast should not be defined before c++20" 344 # endif 345 346 # ifdef __cpp_lib_bitops 347 # error "__cpp_lib_bitops should not be defined before c++20" 348 # endif 349 350 # ifdef __cpp_lib_bitset 351 # error "__cpp_lib_bitset should not be defined before c++26" 352 # endif 353 354 # ifdef __cpp_lib_bool_constant 355 # error "__cpp_lib_bool_constant should not be defined before c++17" 356 # endif 357 358 # ifdef __cpp_lib_bounded_array_traits 359 # error "__cpp_lib_bounded_array_traits should not be defined before c++20" 360 # endif 361 362 # ifdef __cpp_lib_boyer_moore_searcher 363 # error "__cpp_lib_boyer_moore_searcher should not be defined before c++17" 364 # endif 365 366 # ifdef __cpp_lib_byte 367 # error "__cpp_lib_byte should not be defined before c++17" 368 # endif 369 370 # ifdef __cpp_lib_byteswap 371 # error "__cpp_lib_byteswap should not be defined before c++23" 372 # endif 373 374 # ifdef __cpp_lib_char8_t 375 # error "__cpp_lib_char8_t should not be defined before c++20" 376 # endif 377 378 # ifdef __cpp_lib_chrono 379 # error "__cpp_lib_chrono should not be defined before c++17" 380 # endif 381 382 # ifdef __cpp_lib_chrono_udls 383 # error "__cpp_lib_chrono_udls should not be defined before c++14" 384 # endif 385 386 # ifdef __cpp_lib_clamp 387 # error "__cpp_lib_clamp should not be defined before c++17" 388 # endif 389 390 # ifdef __cpp_lib_complex_udls 391 # error "__cpp_lib_complex_udls should not be defined before c++14" 392 # endif 393 394 # ifdef __cpp_lib_concepts 395 # error "__cpp_lib_concepts should not be defined before c++20" 396 # endif 397 398 # ifdef __cpp_lib_constexpr_algorithms 399 # error "__cpp_lib_constexpr_algorithms should not be defined before c++20" 400 # endif 401 402 # ifdef __cpp_lib_constexpr_bitset 403 # error "__cpp_lib_constexpr_bitset should not be defined before c++23" 404 # endif 405 406 # ifdef __cpp_lib_constexpr_charconv 407 # error "__cpp_lib_constexpr_charconv should not be defined before c++23" 408 # endif 409 410 # ifdef __cpp_lib_constexpr_cmath 411 # error "__cpp_lib_constexpr_cmath should not be defined before c++23" 412 # endif 413 414 # ifdef __cpp_lib_constexpr_complex 415 # error "__cpp_lib_constexpr_complex should not be defined before c++20" 416 # endif 417 418 # ifdef __cpp_lib_constexpr_dynamic_alloc 419 # error "__cpp_lib_constexpr_dynamic_alloc should not be defined before c++20" 420 # endif 421 422 # ifdef __cpp_lib_constexpr_functional 423 # error "__cpp_lib_constexpr_functional should not be defined before c++20" 424 # endif 425 426 # ifdef __cpp_lib_constexpr_iterator 427 # error "__cpp_lib_constexpr_iterator should not be defined before c++20" 428 # endif 429 430 # ifdef __cpp_lib_constexpr_memory 431 # error "__cpp_lib_constexpr_memory should not be defined before c++20" 432 # endif 433 434 # ifdef __cpp_lib_constexpr_new 435 # error "__cpp_lib_constexpr_new should not be defined before c++26" 436 # endif 437 438 # ifdef __cpp_lib_constexpr_numeric 439 # error "__cpp_lib_constexpr_numeric should not be defined before c++20" 440 # endif 441 442 # ifdef __cpp_lib_constexpr_string 443 # error "__cpp_lib_constexpr_string should not be defined before c++20" 444 # endif 445 446 # ifdef __cpp_lib_constexpr_string_view 447 # error "__cpp_lib_constexpr_string_view should not be defined before c++20" 448 # endif 449 450 # ifdef __cpp_lib_constexpr_tuple 451 # error "__cpp_lib_constexpr_tuple should not be defined before c++20" 452 # endif 453 454 # ifdef __cpp_lib_constexpr_typeinfo 455 # error "__cpp_lib_constexpr_typeinfo should not be defined before c++23" 456 # endif 457 458 # ifdef __cpp_lib_constexpr_utility 459 # error "__cpp_lib_constexpr_utility should not be defined before c++20" 460 # endif 461 462 # ifdef __cpp_lib_constexpr_vector 463 # error "__cpp_lib_constexpr_vector should not be defined before c++20" 464 # endif 465 466 # ifdef __cpp_lib_constrained_equality 467 # error "__cpp_lib_constrained_equality should not be defined before c++26" 468 # endif 469 470 # ifdef __cpp_lib_containers_ranges 471 # error "__cpp_lib_containers_ranges should not be defined before c++23" 472 # endif 473 474 # ifdef __cpp_lib_copyable_function 475 # error "__cpp_lib_copyable_function should not be defined before c++26" 476 # endif 477 478 # ifdef __cpp_lib_coroutine 479 # error "__cpp_lib_coroutine should not be defined before c++20" 480 # endif 481 482 # ifdef __cpp_lib_debugging 483 # error "__cpp_lib_debugging should not be defined before c++26" 484 # endif 485 486 # ifdef __cpp_lib_default_template_type_for_algorithm_values 487 # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26" 488 # endif 489 490 # ifdef __cpp_lib_destroying_delete 491 # error "__cpp_lib_destroying_delete should not be defined before c++20" 492 # endif 493 494 # ifdef __cpp_lib_enable_shared_from_this 495 # error "__cpp_lib_enable_shared_from_this should not be defined before c++17" 496 # endif 497 498 # ifdef __cpp_lib_endian 499 # error "__cpp_lib_endian should not be defined before c++20" 500 # endif 501 502 # ifdef __cpp_lib_erase_if 503 # error "__cpp_lib_erase_if should not be defined before c++20" 504 # endif 505 506 # ifdef __cpp_lib_exchange_function 507 # error "__cpp_lib_exchange_function should not be defined before c++14" 508 # endif 509 510 # ifdef __cpp_lib_execution 511 # error "__cpp_lib_execution should not be defined before c++17" 512 # endif 513 514 # ifdef __cpp_lib_expected 515 # error "__cpp_lib_expected should not be defined before c++23" 516 # endif 517 518 # ifdef __cpp_lib_filesystem 519 # error "__cpp_lib_filesystem should not be defined before c++17" 520 # endif 521 522 # ifdef __cpp_lib_format 523 # error "__cpp_lib_format should not be defined before c++20" 524 # endif 525 526 # ifdef __cpp_lib_format_path 527 # error "__cpp_lib_format_path should not be defined before c++26" 528 # endif 529 530 # ifdef __cpp_lib_format_ranges 531 # error "__cpp_lib_format_ranges should not be defined before c++23" 532 # endif 533 534 # ifdef __cpp_lib_format_uchar 535 # error "__cpp_lib_format_uchar should not be defined before c++20" 536 # endif 537 538 # ifdef __cpp_lib_formatters 539 # error "__cpp_lib_formatters should not be defined before c++23" 540 # endif 541 542 # ifdef __cpp_lib_forward_like 543 # error "__cpp_lib_forward_like should not be defined before c++23" 544 # endif 545 546 # ifdef __cpp_lib_freestanding_algorithm 547 # error "__cpp_lib_freestanding_algorithm should not be defined before c++26" 548 # endif 549 550 # ifdef __cpp_lib_freestanding_array 551 # error "__cpp_lib_freestanding_array should not be defined before c++26" 552 # endif 553 554 # ifdef __cpp_lib_freestanding_cstring 555 # error "__cpp_lib_freestanding_cstring should not be defined before c++26" 556 # endif 557 558 # ifdef __cpp_lib_freestanding_expected 559 # error "__cpp_lib_freestanding_expected should not be defined before c++26" 560 # endif 561 562 # ifdef __cpp_lib_freestanding_mdspan 563 # error "__cpp_lib_freestanding_mdspan should not be defined before c++26" 564 # endif 565 566 # ifdef __cpp_lib_freestanding_optional 567 # error "__cpp_lib_freestanding_optional should not be defined before c++26" 568 # endif 569 570 # ifdef __cpp_lib_freestanding_string_view 571 # error "__cpp_lib_freestanding_string_view should not be defined before c++26" 572 # endif 573 574 # ifdef __cpp_lib_freestanding_variant 575 # error "__cpp_lib_freestanding_variant should not be defined before c++26" 576 # endif 577 578 # ifdef __cpp_lib_fstream_native_handle 579 # error "__cpp_lib_fstream_native_handle should not be defined before c++26" 580 # endif 581 582 # ifdef __cpp_lib_function_ref 583 # error "__cpp_lib_function_ref should not be defined before c++26" 584 # endif 585 586 # ifdef __cpp_lib_gcd_lcm 587 # error "__cpp_lib_gcd_lcm should not be defined before c++17" 588 # endif 589 590 # ifdef __cpp_lib_generate_random 591 # error "__cpp_lib_generate_random should not be defined before c++26" 592 # endif 593 594 # ifdef __cpp_lib_generic_associative_lookup 595 # error "__cpp_lib_generic_associative_lookup should not be defined before c++14" 596 # endif 597 598 # ifdef __cpp_lib_generic_unordered_lookup 599 # error "__cpp_lib_generic_unordered_lookup should not be defined before c++20" 600 # endif 601 602 # ifdef __cpp_lib_hardware_interference_size 603 # error "__cpp_lib_hardware_interference_size should not be defined before c++17" 604 # endif 605 606 # ifdef __cpp_lib_has_unique_object_representations 607 # error "__cpp_lib_has_unique_object_representations should not be defined before c++17" 608 # endif 609 610 # ifdef __cpp_lib_hazard_pointer 611 # error "__cpp_lib_hazard_pointer should not be defined before c++26" 612 # endif 613 614 # ifdef __cpp_lib_hypot 615 # error "__cpp_lib_hypot should not be defined before c++17" 616 # endif 617 618 # ifdef __cpp_lib_incomplete_container_elements 619 # error "__cpp_lib_incomplete_container_elements should not be defined before c++17" 620 # endif 621 622 # ifdef __cpp_lib_inplace_vector 623 # error "__cpp_lib_inplace_vector should not be defined before c++26" 624 # endif 625 626 # ifdef __cpp_lib_int_pow2 627 # error "__cpp_lib_int_pow2 should not be defined before c++20" 628 # endif 629 630 # ifdef __cpp_lib_integer_comparison_functions 631 # error "__cpp_lib_integer_comparison_functions should not be defined before c++20" 632 # endif 633 634 # ifdef __cpp_lib_integer_sequence 635 # error "__cpp_lib_integer_sequence should not be defined before c++14" 636 # endif 637 638 # ifdef __cpp_lib_integral_constant_callable 639 # error "__cpp_lib_integral_constant_callable should not be defined before c++14" 640 # endif 641 642 # ifdef __cpp_lib_interpolate 643 # error "__cpp_lib_interpolate should not be defined before c++20" 644 # endif 645 646 # ifdef __cpp_lib_invoke 647 # error "__cpp_lib_invoke should not be defined before c++17" 648 # endif 649 650 # ifdef __cpp_lib_invoke_r 651 # error "__cpp_lib_invoke_r should not be defined before c++23" 652 # endif 653 654 # ifdef __cpp_lib_ios_noreplace 655 # error "__cpp_lib_ios_noreplace should not be defined before c++23" 656 # endif 657 658 # ifdef __cpp_lib_is_aggregate 659 # error "__cpp_lib_is_aggregate should not be defined before c++17" 660 # endif 661 662 # ifdef __cpp_lib_is_constant_evaluated 663 # error "__cpp_lib_is_constant_evaluated should not be defined before c++20" 664 # endif 665 666 # ifdef __cpp_lib_is_final 667 # error "__cpp_lib_is_final should not be defined before c++14" 668 # endif 669 670 # ifdef __cpp_lib_is_invocable 671 # error "__cpp_lib_is_invocable should not be defined before c++17" 672 # endif 673 674 # ifdef __cpp_lib_is_layout_compatible 675 # error "__cpp_lib_is_layout_compatible should not be defined before c++20" 676 # endif 677 678 # ifdef __cpp_lib_is_nothrow_convertible 679 # error "__cpp_lib_is_nothrow_convertible should not be defined before c++20" 680 # endif 681 682 # ifdef __cpp_lib_is_null_pointer 683 # error "__cpp_lib_is_null_pointer should not be defined before c++14" 684 # endif 685 686 # ifdef __cpp_lib_is_pointer_interconvertible 687 # error "__cpp_lib_is_pointer_interconvertible should not be defined before c++20" 688 # endif 689 690 # ifdef __cpp_lib_is_scoped_enum 691 # error "__cpp_lib_is_scoped_enum should not be defined before c++23" 692 # endif 693 694 # ifdef __cpp_lib_is_swappable 695 # error "__cpp_lib_is_swappable should not be defined before c++17" 696 # endif 697 698 # ifdef __cpp_lib_is_virtual_base_of 699 # error "__cpp_lib_is_virtual_base_of should not be defined before c++26" 700 # endif 701 702 # ifdef __cpp_lib_is_within_lifetime 703 # error "__cpp_lib_is_within_lifetime should not be defined before c++26" 704 # endif 705 706 # ifdef __cpp_lib_jthread 707 # error "__cpp_lib_jthread should not be defined before c++20" 708 # endif 709 710 # ifdef __cpp_lib_latch 711 # error "__cpp_lib_latch should not be defined before c++20" 712 # endif 713 714 # ifdef __cpp_lib_launder 715 # error "__cpp_lib_launder should not be defined before c++17" 716 # endif 717 718 # ifdef __cpp_lib_linalg 719 # error "__cpp_lib_linalg should not be defined before c++26" 720 # endif 721 722 # ifdef __cpp_lib_list_remove_return_type 723 # error "__cpp_lib_list_remove_return_type should not be defined before c++20" 724 # endif 725 726 # ifdef __cpp_lib_logical_traits 727 # error "__cpp_lib_logical_traits should not be defined before c++17" 728 # endif 729 730 # ifdef __cpp_lib_make_from_tuple 731 # error "__cpp_lib_make_from_tuple should not be defined before c++17" 732 # endif 733 734 # ifdef __cpp_lib_make_reverse_iterator 735 # error "__cpp_lib_make_reverse_iterator should not be defined before c++14" 736 # endif 737 738 # ifdef __cpp_lib_make_unique 739 # error "__cpp_lib_make_unique should not be defined before c++14" 740 # endif 741 742 # ifdef __cpp_lib_map_try_emplace 743 # error "__cpp_lib_map_try_emplace should not be defined before c++17" 744 # endif 745 746 # ifdef __cpp_lib_math_constants 747 # error "__cpp_lib_math_constants should not be defined before c++20" 748 # endif 749 750 # ifdef __cpp_lib_math_special_functions 751 # error "__cpp_lib_math_special_functions should not be defined before c++17" 752 # endif 753 754 # ifdef __cpp_lib_mdspan 755 # error "__cpp_lib_mdspan should not be defined before c++23" 756 # endif 757 758 # ifdef __cpp_lib_memory_resource 759 # error "__cpp_lib_memory_resource should not be defined before c++17" 760 # endif 761 762 # ifdef __cpp_lib_modules 763 # error "__cpp_lib_modules should not be defined before c++23" 764 # endif 765 766 # ifdef __cpp_lib_move_iterator_concept 767 # error "__cpp_lib_move_iterator_concept should not be defined before c++20" 768 # endif 769 770 # ifdef __cpp_lib_move_only_function 771 # error "__cpp_lib_move_only_function should not be defined before c++23" 772 # endif 773 774 # ifdef __cpp_lib_node_extract 775 # error "__cpp_lib_node_extract should not be defined before c++17" 776 # endif 777 778 # ifdef __cpp_lib_nonmember_container_access 779 # error "__cpp_lib_nonmember_container_access should not be defined before c++17" 780 # endif 781 782 # ifdef __cpp_lib_not_fn 783 # error "__cpp_lib_not_fn should not be defined before c++17" 784 # endif 785 786 # ifdef __cpp_lib_null_iterators 787 # error "__cpp_lib_null_iterators should not be defined before c++14" 788 # endif 789 790 # ifdef __cpp_lib_optional 791 # error "__cpp_lib_optional should not be defined before c++17" 792 # endif 793 794 # ifdef __cpp_lib_optional_range_support 795 # error "__cpp_lib_optional_range_support should not be defined before c++26" 796 # endif 797 798 # ifdef __cpp_lib_out_ptr 799 # error "__cpp_lib_out_ptr should not be defined before c++23" 800 # endif 801 802 # ifdef __cpp_lib_parallel_algorithm 803 # error "__cpp_lib_parallel_algorithm should not be defined before c++17" 804 # endif 805 806 # ifdef __cpp_lib_philox_engine 807 # error "__cpp_lib_philox_engine should not be defined before c++26" 808 # endif 809 810 # ifdef __cpp_lib_polymorphic_allocator 811 # error "__cpp_lib_polymorphic_allocator should not be defined before c++20" 812 # endif 813 814 # ifdef __cpp_lib_print 815 # error "__cpp_lib_print should not be defined before c++23" 816 # endif 817 818 # ifdef __cpp_lib_quoted_string_io 819 # error "__cpp_lib_quoted_string_io should not be defined before c++14" 820 # endif 821 822 # ifdef __cpp_lib_ranges 823 # error "__cpp_lib_ranges should not be defined before c++20" 824 # endif 825 826 # ifdef __cpp_lib_ranges_as_const 827 # error "__cpp_lib_ranges_as_const should not be defined before c++23" 828 # endif 829 830 # ifdef __cpp_lib_ranges_as_rvalue 831 # error "__cpp_lib_ranges_as_rvalue should not be defined before c++23" 832 # endif 833 834 # ifdef __cpp_lib_ranges_chunk 835 # error "__cpp_lib_ranges_chunk should not be defined before c++23" 836 # endif 837 838 # ifdef __cpp_lib_ranges_chunk_by 839 # error "__cpp_lib_ranges_chunk_by should not be defined before c++23" 840 # endif 841 842 # ifdef __cpp_lib_ranges_concat 843 # error "__cpp_lib_ranges_concat should not be defined before c++26" 844 # endif 845 846 # ifdef __cpp_lib_ranges_contains 847 # error "__cpp_lib_ranges_contains should not be defined before c++23" 848 # endif 849 850 # ifdef __cpp_lib_ranges_iota 851 # error "__cpp_lib_ranges_iota should not be defined before c++23" 852 # endif 853 854 # ifdef __cpp_lib_ranges_join_with 855 # error "__cpp_lib_ranges_join_with should not be defined before c++23" 856 # endif 857 858 # ifdef __cpp_lib_ranges_repeat 859 # error "__cpp_lib_ranges_repeat should not be defined before c++23" 860 # endif 861 862 # ifdef __cpp_lib_ranges_slide 863 # error "__cpp_lib_ranges_slide should not be defined before c++23" 864 # endif 865 866 # ifdef __cpp_lib_ranges_starts_ends_with 867 # error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23" 868 # endif 869 870 # ifdef __cpp_lib_ranges_to_container 871 # error "__cpp_lib_ranges_to_container should not be defined before c++23" 872 # endif 873 874 # ifdef __cpp_lib_ranges_zip 875 # error "__cpp_lib_ranges_zip should not be defined before c++23" 876 # endif 877 878 # ifdef __cpp_lib_ratio 879 # error "__cpp_lib_ratio should not be defined before c++26" 880 # endif 881 882 # ifdef __cpp_lib_raw_memory_algorithms 883 # error "__cpp_lib_raw_memory_algorithms should not be defined before c++17" 884 # endif 885 886 # ifdef __cpp_lib_rcu 887 # error "__cpp_lib_rcu should not be defined before c++26" 888 # endif 889 890 # ifdef __cpp_lib_reference_from_temporary 891 # error "__cpp_lib_reference_from_temporary should not be defined before c++23" 892 # endif 893 894 # ifdef __cpp_lib_reference_wrapper 895 # error "__cpp_lib_reference_wrapper should not be defined before c++26" 896 # endif 897 898 # ifdef __cpp_lib_remove_cvref 899 # error "__cpp_lib_remove_cvref should not be defined before c++20" 900 # endif 901 902 # ifdef __cpp_lib_result_of_sfinae 903 # error "__cpp_lib_result_of_sfinae should not be defined before c++14" 904 # endif 905 906 # ifdef __cpp_lib_robust_nonmodifying_seq_ops 907 # error "__cpp_lib_robust_nonmodifying_seq_ops should not be defined before c++14" 908 # endif 909 910 # ifdef __cpp_lib_sample 911 # error "__cpp_lib_sample should not be defined before c++17" 912 # endif 913 914 # ifdef __cpp_lib_saturation_arithmetic 915 # error "__cpp_lib_saturation_arithmetic should not be defined before c++26" 916 # endif 917 918 # ifdef __cpp_lib_scoped_lock 919 # error "__cpp_lib_scoped_lock should not be defined before c++17" 920 # endif 921 922 # ifdef __cpp_lib_semaphore 923 # error "__cpp_lib_semaphore should not be defined before c++20" 924 # endif 925 926 # ifdef __cpp_lib_senders 927 # error "__cpp_lib_senders should not be defined before c++26" 928 # endif 929 930 # ifdef __cpp_lib_shared_mutex 931 # error "__cpp_lib_shared_mutex should not be defined before c++17" 932 # endif 933 934 # ifdef __cpp_lib_shared_ptr_arrays 935 # error "__cpp_lib_shared_ptr_arrays should not be defined before c++17" 936 # endif 937 938 # ifdef __cpp_lib_shared_ptr_weak_type 939 # error "__cpp_lib_shared_ptr_weak_type should not be defined before c++17" 940 # endif 941 942 # ifdef __cpp_lib_shared_timed_mutex 943 # error "__cpp_lib_shared_timed_mutex should not be defined before c++14" 944 # endif 945 946 # ifdef __cpp_lib_shift 947 # error "__cpp_lib_shift should not be defined before c++20" 948 # endif 949 950 # ifdef __cpp_lib_smart_ptr_for_overwrite 951 # error "__cpp_lib_smart_ptr_for_overwrite should not be defined before c++20" 952 # endif 953 954 # ifdef __cpp_lib_smart_ptr_owner_equality 955 # error "__cpp_lib_smart_ptr_owner_equality should not be defined before c++26" 956 # endif 957 958 # ifdef __cpp_lib_source_location 959 # error "__cpp_lib_source_location should not be defined before c++20" 960 # endif 961 962 # ifdef __cpp_lib_span 963 # error "__cpp_lib_span should not be defined before c++20" 964 # endif 965 966 # ifdef __cpp_lib_span_at 967 # error "__cpp_lib_span_at should not be defined before c++26" 968 # endif 969 970 # ifdef __cpp_lib_span_initializer_list 971 # error "__cpp_lib_span_initializer_list should not be defined before c++26" 972 # endif 973 974 # ifdef __cpp_lib_spanstream 975 # error "__cpp_lib_spanstream should not be defined before c++23" 976 # endif 977 978 # ifdef __cpp_lib_ssize 979 # error "__cpp_lib_ssize should not be defined before c++20" 980 # endif 981 982 # ifdef __cpp_lib_sstream_from_string_view 983 # error "__cpp_lib_sstream_from_string_view should not be defined before c++26" 984 # endif 985 986 # ifdef __cpp_lib_stacktrace 987 # error "__cpp_lib_stacktrace should not be defined before c++23" 988 # endif 989 990 # ifdef __cpp_lib_starts_ends_with 991 # error "__cpp_lib_starts_ends_with should not be defined before c++20" 992 # endif 993 994 # ifdef __cpp_lib_stdatomic_h 995 # error "__cpp_lib_stdatomic_h should not be defined before c++23" 996 # endif 997 998 # ifdef __cpp_lib_string_contains 999 # error "__cpp_lib_string_contains should not be defined before c++23" 1000 # endif 1001 1002 # ifdef __cpp_lib_string_resize_and_overwrite 1003 # error "__cpp_lib_string_resize_and_overwrite should not be defined before c++23" 1004 # endif 1005 1006 # ifdef __cpp_lib_string_udls 1007 # error "__cpp_lib_string_udls should not be defined before c++14" 1008 # endif 1009 1010 # ifdef __cpp_lib_string_view 1011 # error "__cpp_lib_string_view should not be defined before c++17" 1012 # endif 1013 1014 # ifdef __cpp_lib_submdspan 1015 # error "__cpp_lib_submdspan should not be defined before c++26" 1016 # endif 1017 1018 # ifdef __cpp_lib_syncbuf 1019 # error "__cpp_lib_syncbuf should not be defined before c++20" 1020 # endif 1021 1022 # ifdef __cpp_lib_text_encoding 1023 # error "__cpp_lib_text_encoding should not be defined before c++26" 1024 # endif 1025 1026 # ifdef __cpp_lib_three_way_comparison 1027 # error "__cpp_lib_three_way_comparison should not be defined before c++20" 1028 # endif 1029 1030 # ifdef __cpp_lib_to_address 1031 # error "__cpp_lib_to_address should not be defined before c++20" 1032 # endif 1033 1034 # ifdef __cpp_lib_to_array 1035 # error "__cpp_lib_to_array should not be defined before c++20" 1036 # endif 1037 1038 # ifdef __cpp_lib_to_chars 1039 # error "__cpp_lib_to_chars should not be defined before c++17" 1040 # endif 1041 1042 # ifdef __cpp_lib_to_string 1043 # error "__cpp_lib_to_string should not be defined before c++26" 1044 # endif 1045 1046 # ifdef __cpp_lib_to_underlying 1047 # error "__cpp_lib_to_underlying should not be defined before c++23" 1048 # endif 1049 1050 # ifdef __cpp_lib_transformation_trait_aliases 1051 # error "__cpp_lib_transformation_trait_aliases should not be defined before c++14" 1052 # endif 1053 1054 # ifdef __cpp_lib_transparent_operators 1055 # error "__cpp_lib_transparent_operators should not be defined before c++14" 1056 # endif 1057 1058 # ifdef __cpp_lib_tuple_element_t 1059 # error "__cpp_lib_tuple_element_t should not be defined before c++14" 1060 # endif 1061 1062 # ifdef __cpp_lib_tuple_like 1063 # error "__cpp_lib_tuple_like should not be defined before c++23" 1064 # endif 1065 1066 # ifdef __cpp_lib_tuples_by_type 1067 # error "__cpp_lib_tuples_by_type should not be defined before c++14" 1068 # endif 1069 1070 # ifdef __cpp_lib_type_identity 1071 # error "__cpp_lib_type_identity should not be defined before c++20" 1072 # endif 1073 1074 # ifdef __cpp_lib_type_trait_variable_templates 1075 # error "__cpp_lib_type_trait_variable_templates should not be defined before c++17" 1076 # endif 1077 1078 # ifdef __cpp_lib_uncaught_exceptions 1079 # error "__cpp_lib_uncaught_exceptions should not be defined before c++17" 1080 # endif 1081 1082 # ifdef __cpp_lib_unordered_map_try_emplace 1083 # error "__cpp_lib_unordered_map_try_emplace should not be defined before c++17" 1084 # endif 1085 1086 # ifdef __cpp_lib_unreachable 1087 # error "__cpp_lib_unreachable should not be defined before c++23" 1088 # endif 1089 1090 # ifdef __cpp_lib_unwrap_ref 1091 # error "__cpp_lib_unwrap_ref should not be defined before c++20" 1092 # endif 1093 1094 # ifdef __cpp_lib_variant 1095 # error "__cpp_lib_variant should not be defined before c++17" 1096 # endif 1097 1098 # ifdef __cpp_lib_void_t 1099 # error "__cpp_lib_void_t should not be defined before c++17" 1100 # endif 1101 1102 #elif TEST_STD_VER == 14 1103 1104 # ifdef __cpp_lib_adaptor_iterator_pair_constructor 1105 # error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23" 1106 # endif 1107 1108 # ifdef __cpp_lib_addressof_constexpr 1109 # error "__cpp_lib_addressof_constexpr should not be defined before c++17" 1110 # endif 1111 1112 # ifdef __cpp_lib_allocate_at_least 1113 # error "__cpp_lib_allocate_at_least should not be defined before c++23" 1114 # endif 1115 1116 # ifdef __cpp_lib_allocator_traits_is_always_equal 1117 # error "__cpp_lib_allocator_traits_is_always_equal should not be defined before c++17" 1118 # endif 1119 1120 # ifdef __cpp_lib_any 1121 # error "__cpp_lib_any should not be defined before c++17" 1122 # endif 1123 1124 # ifdef __cpp_lib_apply 1125 # error "__cpp_lib_apply should not be defined before c++17" 1126 # endif 1127 1128 # ifdef __cpp_lib_array_constexpr 1129 # error "__cpp_lib_array_constexpr should not be defined before c++17" 1130 # endif 1131 1132 # ifdef __cpp_lib_as_const 1133 # error "__cpp_lib_as_const should not be defined before c++17" 1134 # endif 1135 1136 # ifdef __cpp_lib_associative_heterogeneous_erasure 1137 # error "__cpp_lib_associative_heterogeneous_erasure should not be defined before c++23" 1138 # endif 1139 1140 # ifdef __cpp_lib_associative_heterogeneous_insertion 1141 # error "__cpp_lib_associative_heterogeneous_insertion should not be defined before c++26" 1142 # endif 1143 1144 # ifdef __cpp_lib_assume_aligned 1145 # error "__cpp_lib_assume_aligned should not be defined before c++20" 1146 # endif 1147 1148 # ifdef __cpp_lib_atomic_flag_test 1149 # error "__cpp_lib_atomic_flag_test should not be defined before c++20" 1150 # endif 1151 1152 # ifdef __cpp_lib_atomic_float 1153 # error "__cpp_lib_atomic_float should not be defined before c++20" 1154 # endif 1155 1156 # ifdef __cpp_lib_atomic_is_always_lock_free 1157 # error "__cpp_lib_atomic_is_always_lock_free should not be defined before c++17" 1158 # endif 1159 1160 # ifdef __cpp_lib_atomic_lock_free_type_aliases 1161 # error "__cpp_lib_atomic_lock_free_type_aliases should not be defined before c++20" 1162 # endif 1163 1164 # ifdef __cpp_lib_atomic_min_max 1165 # error "__cpp_lib_atomic_min_max should not be defined before c++26" 1166 # endif 1167 1168 # ifdef __cpp_lib_atomic_ref 1169 # error "__cpp_lib_atomic_ref should not be defined before c++20" 1170 # endif 1171 1172 # ifdef __cpp_lib_atomic_shared_ptr 1173 # error "__cpp_lib_atomic_shared_ptr should not be defined before c++20" 1174 # endif 1175 1176 # ifdef __cpp_lib_atomic_value_initialization 1177 # error "__cpp_lib_atomic_value_initialization should not be defined before c++20" 1178 # endif 1179 1180 # ifdef __cpp_lib_atomic_wait 1181 # error "__cpp_lib_atomic_wait should not be defined before c++20" 1182 # endif 1183 1184 # ifdef __cpp_lib_barrier 1185 # error "__cpp_lib_barrier should not be defined before c++20" 1186 # endif 1187 1188 # ifdef __cpp_lib_bind_back 1189 # error "__cpp_lib_bind_back should not be defined before c++23" 1190 # endif 1191 1192 # ifdef __cpp_lib_bind_front 1193 # error "__cpp_lib_bind_front should not be defined before c++20" 1194 # endif 1195 1196 # ifdef __cpp_lib_bit_cast 1197 # error "__cpp_lib_bit_cast should not be defined before c++20" 1198 # endif 1199 1200 # ifdef __cpp_lib_bitops 1201 # error "__cpp_lib_bitops should not be defined before c++20" 1202 # endif 1203 1204 # ifdef __cpp_lib_bitset 1205 # error "__cpp_lib_bitset should not be defined before c++26" 1206 # endif 1207 1208 # ifdef __cpp_lib_bool_constant 1209 # error "__cpp_lib_bool_constant should not be defined before c++17" 1210 # endif 1211 1212 # ifdef __cpp_lib_bounded_array_traits 1213 # error "__cpp_lib_bounded_array_traits should not be defined before c++20" 1214 # endif 1215 1216 # ifdef __cpp_lib_boyer_moore_searcher 1217 # error "__cpp_lib_boyer_moore_searcher should not be defined before c++17" 1218 # endif 1219 1220 # ifdef __cpp_lib_byte 1221 # error "__cpp_lib_byte should not be defined before c++17" 1222 # endif 1223 1224 # ifdef __cpp_lib_byteswap 1225 # error "__cpp_lib_byteswap should not be defined before c++23" 1226 # endif 1227 1228 # ifdef __cpp_lib_char8_t 1229 # error "__cpp_lib_char8_t should not be defined before c++20" 1230 # endif 1231 1232 # ifdef __cpp_lib_chrono 1233 # error "__cpp_lib_chrono should not be defined before c++17" 1234 # endif 1235 1236 # ifndef __cpp_lib_chrono_udls 1237 # error "__cpp_lib_chrono_udls should be defined in c++14" 1238 # endif 1239 # if __cpp_lib_chrono_udls != 201304L 1240 # error "__cpp_lib_chrono_udls should have the value 201304L in c++14" 1241 # endif 1242 1243 # ifdef __cpp_lib_clamp 1244 # error "__cpp_lib_clamp should not be defined before c++17" 1245 # endif 1246 1247 # ifndef __cpp_lib_complex_udls 1248 # error "__cpp_lib_complex_udls should be defined in c++14" 1249 # endif 1250 # if __cpp_lib_complex_udls != 201309L 1251 # error "__cpp_lib_complex_udls should have the value 201309L in c++14" 1252 # endif 1253 1254 # ifdef __cpp_lib_concepts 1255 # error "__cpp_lib_concepts should not be defined before c++20" 1256 # endif 1257 1258 # ifdef __cpp_lib_constexpr_algorithms 1259 # error "__cpp_lib_constexpr_algorithms should not be defined before c++20" 1260 # endif 1261 1262 # ifdef __cpp_lib_constexpr_bitset 1263 # error "__cpp_lib_constexpr_bitset should not be defined before c++23" 1264 # endif 1265 1266 # ifdef __cpp_lib_constexpr_charconv 1267 # error "__cpp_lib_constexpr_charconv should not be defined before c++23" 1268 # endif 1269 1270 # ifdef __cpp_lib_constexpr_cmath 1271 # error "__cpp_lib_constexpr_cmath should not be defined before c++23" 1272 # endif 1273 1274 # ifdef __cpp_lib_constexpr_complex 1275 # error "__cpp_lib_constexpr_complex should not be defined before c++20" 1276 # endif 1277 1278 # ifdef __cpp_lib_constexpr_dynamic_alloc 1279 # error "__cpp_lib_constexpr_dynamic_alloc should not be defined before c++20" 1280 # endif 1281 1282 # ifdef __cpp_lib_constexpr_functional 1283 # error "__cpp_lib_constexpr_functional should not be defined before c++20" 1284 # endif 1285 1286 # ifdef __cpp_lib_constexpr_iterator 1287 # error "__cpp_lib_constexpr_iterator should not be defined before c++20" 1288 # endif 1289 1290 # ifdef __cpp_lib_constexpr_memory 1291 # error "__cpp_lib_constexpr_memory should not be defined before c++20" 1292 # endif 1293 1294 # ifdef __cpp_lib_constexpr_new 1295 # error "__cpp_lib_constexpr_new should not be defined before c++26" 1296 # endif 1297 1298 # ifdef __cpp_lib_constexpr_numeric 1299 # error "__cpp_lib_constexpr_numeric should not be defined before c++20" 1300 # endif 1301 1302 # ifdef __cpp_lib_constexpr_string 1303 # error "__cpp_lib_constexpr_string should not be defined before c++20" 1304 # endif 1305 1306 # ifdef __cpp_lib_constexpr_string_view 1307 # error "__cpp_lib_constexpr_string_view should not be defined before c++20" 1308 # endif 1309 1310 # ifdef __cpp_lib_constexpr_tuple 1311 # error "__cpp_lib_constexpr_tuple should not be defined before c++20" 1312 # endif 1313 1314 # ifdef __cpp_lib_constexpr_typeinfo 1315 # error "__cpp_lib_constexpr_typeinfo should not be defined before c++23" 1316 # endif 1317 1318 # ifdef __cpp_lib_constexpr_utility 1319 # error "__cpp_lib_constexpr_utility should not be defined before c++20" 1320 # endif 1321 1322 # ifdef __cpp_lib_constexpr_vector 1323 # error "__cpp_lib_constexpr_vector should not be defined before c++20" 1324 # endif 1325 1326 # ifdef __cpp_lib_constrained_equality 1327 # error "__cpp_lib_constrained_equality should not be defined before c++26" 1328 # endif 1329 1330 # ifdef __cpp_lib_containers_ranges 1331 # error "__cpp_lib_containers_ranges should not be defined before c++23" 1332 # endif 1333 1334 # ifdef __cpp_lib_copyable_function 1335 # error "__cpp_lib_copyable_function should not be defined before c++26" 1336 # endif 1337 1338 # ifdef __cpp_lib_coroutine 1339 # error "__cpp_lib_coroutine should not be defined before c++20" 1340 # endif 1341 1342 # ifdef __cpp_lib_debugging 1343 # error "__cpp_lib_debugging should not be defined before c++26" 1344 # endif 1345 1346 # ifdef __cpp_lib_default_template_type_for_algorithm_values 1347 # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26" 1348 # endif 1349 1350 # ifdef __cpp_lib_destroying_delete 1351 # error "__cpp_lib_destroying_delete should not be defined before c++20" 1352 # endif 1353 1354 # ifdef __cpp_lib_enable_shared_from_this 1355 # error "__cpp_lib_enable_shared_from_this should not be defined before c++17" 1356 # endif 1357 1358 # ifdef __cpp_lib_endian 1359 # error "__cpp_lib_endian should not be defined before c++20" 1360 # endif 1361 1362 # ifdef __cpp_lib_erase_if 1363 # error "__cpp_lib_erase_if should not be defined before c++20" 1364 # endif 1365 1366 # ifndef __cpp_lib_exchange_function 1367 # error "__cpp_lib_exchange_function should be defined in c++14" 1368 # endif 1369 # if __cpp_lib_exchange_function != 201304L 1370 # error "__cpp_lib_exchange_function should have the value 201304L in c++14" 1371 # endif 1372 1373 # ifdef __cpp_lib_execution 1374 # error "__cpp_lib_execution should not be defined before c++17" 1375 # endif 1376 1377 # ifdef __cpp_lib_expected 1378 # error "__cpp_lib_expected should not be defined before c++23" 1379 # endif 1380 1381 # ifdef __cpp_lib_filesystem 1382 # error "__cpp_lib_filesystem should not be defined before c++17" 1383 # endif 1384 1385 # ifdef __cpp_lib_format 1386 # error "__cpp_lib_format should not be defined before c++20" 1387 # endif 1388 1389 # ifdef __cpp_lib_format_path 1390 # error "__cpp_lib_format_path should not be defined before c++26" 1391 # endif 1392 1393 # ifdef __cpp_lib_format_ranges 1394 # error "__cpp_lib_format_ranges should not be defined before c++23" 1395 # endif 1396 1397 # ifdef __cpp_lib_format_uchar 1398 # error "__cpp_lib_format_uchar should not be defined before c++20" 1399 # endif 1400 1401 # ifdef __cpp_lib_formatters 1402 # error "__cpp_lib_formatters should not be defined before c++23" 1403 # endif 1404 1405 # ifdef __cpp_lib_forward_like 1406 # error "__cpp_lib_forward_like should not be defined before c++23" 1407 # endif 1408 1409 # ifdef __cpp_lib_freestanding_algorithm 1410 # error "__cpp_lib_freestanding_algorithm should not be defined before c++26" 1411 # endif 1412 1413 # ifdef __cpp_lib_freestanding_array 1414 # error "__cpp_lib_freestanding_array should not be defined before c++26" 1415 # endif 1416 1417 # ifdef __cpp_lib_freestanding_cstring 1418 # error "__cpp_lib_freestanding_cstring should not be defined before c++26" 1419 # endif 1420 1421 # ifdef __cpp_lib_freestanding_expected 1422 # error "__cpp_lib_freestanding_expected should not be defined before c++26" 1423 # endif 1424 1425 # ifdef __cpp_lib_freestanding_mdspan 1426 # error "__cpp_lib_freestanding_mdspan should not be defined before c++26" 1427 # endif 1428 1429 # ifdef __cpp_lib_freestanding_optional 1430 # error "__cpp_lib_freestanding_optional should not be defined before c++26" 1431 # endif 1432 1433 # ifdef __cpp_lib_freestanding_string_view 1434 # error "__cpp_lib_freestanding_string_view should not be defined before c++26" 1435 # endif 1436 1437 # ifdef __cpp_lib_freestanding_variant 1438 # error "__cpp_lib_freestanding_variant should not be defined before c++26" 1439 # endif 1440 1441 # ifdef __cpp_lib_fstream_native_handle 1442 # error "__cpp_lib_fstream_native_handle should not be defined before c++26" 1443 # endif 1444 1445 # ifdef __cpp_lib_function_ref 1446 # error "__cpp_lib_function_ref should not be defined before c++26" 1447 # endif 1448 1449 # ifdef __cpp_lib_gcd_lcm 1450 # error "__cpp_lib_gcd_lcm should not be defined before c++17" 1451 # endif 1452 1453 # ifdef __cpp_lib_generate_random 1454 # error "__cpp_lib_generate_random should not be defined before c++26" 1455 # endif 1456 1457 # ifndef __cpp_lib_generic_associative_lookup 1458 # error "__cpp_lib_generic_associative_lookup should be defined in c++14" 1459 # endif 1460 # if __cpp_lib_generic_associative_lookup != 201304L 1461 # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++14" 1462 # endif 1463 1464 # ifdef __cpp_lib_generic_unordered_lookup 1465 # error "__cpp_lib_generic_unordered_lookup should not be defined before c++20" 1466 # endif 1467 1468 # ifdef __cpp_lib_hardware_interference_size 1469 # error "__cpp_lib_hardware_interference_size should not be defined before c++17" 1470 # endif 1471 1472 # ifdef __cpp_lib_has_unique_object_representations 1473 # error "__cpp_lib_has_unique_object_representations should not be defined before c++17" 1474 # endif 1475 1476 # ifdef __cpp_lib_hazard_pointer 1477 # error "__cpp_lib_hazard_pointer should not be defined before c++26" 1478 # endif 1479 1480 # ifdef __cpp_lib_hypot 1481 # error "__cpp_lib_hypot should not be defined before c++17" 1482 # endif 1483 1484 # ifdef __cpp_lib_incomplete_container_elements 1485 # error "__cpp_lib_incomplete_container_elements should not be defined before c++17" 1486 # endif 1487 1488 # ifdef __cpp_lib_inplace_vector 1489 # error "__cpp_lib_inplace_vector should not be defined before c++26" 1490 # endif 1491 1492 # ifdef __cpp_lib_int_pow2 1493 # error "__cpp_lib_int_pow2 should not be defined before c++20" 1494 # endif 1495 1496 # ifdef __cpp_lib_integer_comparison_functions 1497 # error "__cpp_lib_integer_comparison_functions should not be defined before c++20" 1498 # endif 1499 1500 # ifndef __cpp_lib_integer_sequence 1501 # error "__cpp_lib_integer_sequence should be defined in c++14" 1502 # endif 1503 # if __cpp_lib_integer_sequence != 201304L 1504 # error "__cpp_lib_integer_sequence should have the value 201304L in c++14" 1505 # endif 1506 1507 # ifndef __cpp_lib_integral_constant_callable 1508 # error "__cpp_lib_integral_constant_callable should be defined in c++14" 1509 # endif 1510 # if __cpp_lib_integral_constant_callable != 201304L 1511 # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++14" 1512 # endif 1513 1514 # ifdef __cpp_lib_interpolate 1515 # error "__cpp_lib_interpolate should not be defined before c++20" 1516 # endif 1517 1518 # ifdef __cpp_lib_invoke 1519 # error "__cpp_lib_invoke should not be defined before c++17" 1520 # endif 1521 1522 # ifdef __cpp_lib_invoke_r 1523 # error "__cpp_lib_invoke_r should not be defined before c++23" 1524 # endif 1525 1526 # ifdef __cpp_lib_ios_noreplace 1527 # error "__cpp_lib_ios_noreplace should not be defined before c++23" 1528 # endif 1529 1530 # ifdef __cpp_lib_is_aggregate 1531 # error "__cpp_lib_is_aggregate should not be defined before c++17" 1532 # endif 1533 1534 # ifdef __cpp_lib_is_constant_evaluated 1535 # error "__cpp_lib_is_constant_evaluated should not be defined before c++20" 1536 # endif 1537 1538 # ifndef __cpp_lib_is_final 1539 # error "__cpp_lib_is_final should be defined in c++14" 1540 # endif 1541 # if __cpp_lib_is_final != 201402L 1542 # error "__cpp_lib_is_final should have the value 201402L in c++14" 1543 # endif 1544 1545 # ifdef __cpp_lib_is_invocable 1546 # error "__cpp_lib_is_invocable should not be defined before c++17" 1547 # endif 1548 1549 # ifdef __cpp_lib_is_layout_compatible 1550 # error "__cpp_lib_is_layout_compatible should not be defined before c++20" 1551 # endif 1552 1553 # ifdef __cpp_lib_is_nothrow_convertible 1554 # error "__cpp_lib_is_nothrow_convertible should not be defined before c++20" 1555 # endif 1556 1557 # ifndef __cpp_lib_is_null_pointer 1558 # error "__cpp_lib_is_null_pointer should be defined in c++14" 1559 # endif 1560 # if __cpp_lib_is_null_pointer != 201309L 1561 # error "__cpp_lib_is_null_pointer should have the value 201309L in c++14" 1562 # endif 1563 1564 # ifdef __cpp_lib_is_pointer_interconvertible 1565 # error "__cpp_lib_is_pointer_interconvertible should not be defined before c++20" 1566 # endif 1567 1568 # ifdef __cpp_lib_is_scoped_enum 1569 # error "__cpp_lib_is_scoped_enum should not be defined before c++23" 1570 # endif 1571 1572 # ifdef __cpp_lib_is_swappable 1573 # error "__cpp_lib_is_swappable should not be defined before c++17" 1574 # endif 1575 1576 # ifdef __cpp_lib_is_virtual_base_of 1577 # error "__cpp_lib_is_virtual_base_of should not be defined before c++26" 1578 # endif 1579 1580 # ifdef __cpp_lib_is_within_lifetime 1581 # error "__cpp_lib_is_within_lifetime should not be defined before c++26" 1582 # endif 1583 1584 # ifdef __cpp_lib_jthread 1585 # error "__cpp_lib_jthread should not be defined before c++20" 1586 # endif 1587 1588 # ifdef __cpp_lib_latch 1589 # error "__cpp_lib_latch should not be defined before c++20" 1590 # endif 1591 1592 # ifdef __cpp_lib_launder 1593 # error "__cpp_lib_launder should not be defined before c++17" 1594 # endif 1595 1596 # ifdef __cpp_lib_linalg 1597 # error "__cpp_lib_linalg should not be defined before c++26" 1598 # endif 1599 1600 # ifdef __cpp_lib_list_remove_return_type 1601 # error "__cpp_lib_list_remove_return_type should not be defined before c++20" 1602 # endif 1603 1604 # ifdef __cpp_lib_logical_traits 1605 # error "__cpp_lib_logical_traits should not be defined before c++17" 1606 # endif 1607 1608 # ifdef __cpp_lib_make_from_tuple 1609 # error "__cpp_lib_make_from_tuple should not be defined before c++17" 1610 # endif 1611 1612 # ifndef __cpp_lib_make_reverse_iterator 1613 # error "__cpp_lib_make_reverse_iterator should be defined in c++14" 1614 # endif 1615 # if __cpp_lib_make_reverse_iterator != 201402L 1616 # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++14" 1617 # endif 1618 1619 # ifndef __cpp_lib_make_unique 1620 # error "__cpp_lib_make_unique should be defined in c++14" 1621 # endif 1622 # if __cpp_lib_make_unique != 201304L 1623 # error "__cpp_lib_make_unique should have the value 201304L in c++14" 1624 # endif 1625 1626 # ifdef __cpp_lib_map_try_emplace 1627 # error "__cpp_lib_map_try_emplace should not be defined before c++17" 1628 # endif 1629 1630 # ifdef __cpp_lib_math_constants 1631 # error "__cpp_lib_math_constants should not be defined before c++20" 1632 # endif 1633 1634 # ifdef __cpp_lib_math_special_functions 1635 # error "__cpp_lib_math_special_functions should not be defined before c++17" 1636 # endif 1637 1638 # ifdef __cpp_lib_mdspan 1639 # error "__cpp_lib_mdspan should not be defined before c++23" 1640 # endif 1641 1642 # ifdef __cpp_lib_memory_resource 1643 # error "__cpp_lib_memory_resource should not be defined before c++17" 1644 # endif 1645 1646 # ifdef __cpp_lib_modules 1647 # error "__cpp_lib_modules should not be defined before c++23" 1648 # endif 1649 1650 # ifdef __cpp_lib_move_iterator_concept 1651 # error "__cpp_lib_move_iterator_concept should not be defined before c++20" 1652 # endif 1653 1654 # ifdef __cpp_lib_move_only_function 1655 # error "__cpp_lib_move_only_function should not be defined before c++23" 1656 # endif 1657 1658 # ifdef __cpp_lib_node_extract 1659 # error "__cpp_lib_node_extract should not be defined before c++17" 1660 # endif 1661 1662 # ifdef __cpp_lib_nonmember_container_access 1663 # error "__cpp_lib_nonmember_container_access should not be defined before c++17" 1664 # endif 1665 1666 # ifdef __cpp_lib_not_fn 1667 # error "__cpp_lib_not_fn should not be defined before c++17" 1668 # endif 1669 1670 # ifndef __cpp_lib_null_iterators 1671 # error "__cpp_lib_null_iterators should be defined in c++14" 1672 # endif 1673 # if __cpp_lib_null_iterators != 201304L 1674 # error "__cpp_lib_null_iterators should have the value 201304L in c++14" 1675 # endif 1676 1677 # ifdef __cpp_lib_optional 1678 # error "__cpp_lib_optional should not be defined before c++17" 1679 # endif 1680 1681 # ifdef __cpp_lib_optional_range_support 1682 # error "__cpp_lib_optional_range_support should not be defined before c++26" 1683 # endif 1684 1685 # ifdef __cpp_lib_out_ptr 1686 # error "__cpp_lib_out_ptr should not be defined before c++23" 1687 # endif 1688 1689 # ifdef __cpp_lib_parallel_algorithm 1690 # error "__cpp_lib_parallel_algorithm should not be defined before c++17" 1691 # endif 1692 1693 # ifdef __cpp_lib_philox_engine 1694 # error "__cpp_lib_philox_engine should not be defined before c++26" 1695 # endif 1696 1697 # ifdef __cpp_lib_polymorphic_allocator 1698 # error "__cpp_lib_polymorphic_allocator should not be defined before c++20" 1699 # endif 1700 1701 # ifdef __cpp_lib_print 1702 # error "__cpp_lib_print should not be defined before c++23" 1703 # endif 1704 1705 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION) 1706 # ifndef __cpp_lib_quoted_string_io 1707 # error "__cpp_lib_quoted_string_io should be defined in c++14" 1708 # endif 1709 # if __cpp_lib_quoted_string_io != 201304L 1710 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++14" 1711 # endif 1712 # else 1713 # ifdef __cpp_lib_quoted_string_io 1714 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!" 1715 # endif 1716 # endif 1717 1718 # ifdef __cpp_lib_ranges 1719 # error "__cpp_lib_ranges should not be defined before c++20" 1720 # endif 1721 1722 # ifdef __cpp_lib_ranges_as_const 1723 # error "__cpp_lib_ranges_as_const should not be defined before c++23" 1724 # endif 1725 1726 # ifdef __cpp_lib_ranges_as_rvalue 1727 # error "__cpp_lib_ranges_as_rvalue should not be defined before c++23" 1728 # endif 1729 1730 # ifdef __cpp_lib_ranges_chunk 1731 # error "__cpp_lib_ranges_chunk should not be defined before c++23" 1732 # endif 1733 1734 # ifdef __cpp_lib_ranges_chunk_by 1735 # error "__cpp_lib_ranges_chunk_by should not be defined before c++23" 1736 # endif 1737 1738 # ifdef __cpp_lib_ranges_concat 1739 # error "__cpp_lib_ranges_concat should not be defined before c++26" 1740 # endif 1741 1742 # ifdef __cpp_lib_ranges_contains 1743 # error "__cpp_lib_ranges_contains should not be defined before c++23" 1744 # endif 1745 1746 # ifdef __cpp_lib_ranges_iota 1747 # error "__cpp_lib_ranges_iota should not be defined before c++23" 1748 # endif 1749 1750 # ifdef __cpp_lib_ranges_join_with 1751 # error "__cpp_lib_ranges_join_with should not be defined before c++23" 1752 # endif 1753 1754 # ifdef __cpp_lib_ranges_repeat 1755 # error "__cpp_lib_ranges_repeat should not be defined before c++23" 1756 # endif 1757 1758 # ifdef __cpp_lib_ranges_slide 1759 # error "__cpp_lib_ranges_slide should not be defined before c++23" 1760 # endif 1761 1762 # ifdef __cpp_lib_ranges_starts_ends_with 1763 # error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23" 1764 # endif 1765 1766 # ifdef __cpp_lib_ranges_to_container 1767 # error "__cpp_lib_ranges_to_container should not be defined before c++23" 1768 # endif 1769 1770 # ifdef __cpp_lib_ranges_zip 1771 # error "__cpp_lib_ranges_zip should not be defined before c++23" 1772 # endif 1773 1774 # ifdef __cpp_lib_ratio 1775 # error "__cpp_lib_ratio should not be defined before c++26" 1776 # endif 1777 1778 # ifdef __cpp_lib_raw_memory_algorithms 1779 # error "__cpp_lib_raw_memory_algorithms should not be defined before c++17" 1780 # endif 1781 1782 # ifdef __cpp_lib_rcu 1783 # error "__cpp_lib_rcu should not be defined before c++26" 1784 # endif 1785 1786 # ifdef __cpp_lib_reference_from_temporary 1787 # error "__cpp_lib_reference_from_temporary should not be defined before c++23" 1788 # endif 1789 1790 # ifdef __cpp_lib_reference_wrapper 1791 # error "__cpp_lib_reference_wrapper should not be defined before c++26" 1792 # endif 1793 1794 # ifdef __cpp_lib_remove_cvref 1795 # error "__cpp_lib_remove_cvref should not be defined before c++20" 1796 # endif 1797 1798 # ifndef __cpp_lib_result_of_sfinae 1799 # error "__cpp_lib_result_of_sfinae should be defined in c++14" 1800 # endif 1801 # if __cpp_lib_result_of_sfinae != 201210L 1802 # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++14" 1803 # endif 1804 1805 # ifndef __cpp_lib_robust_nonmodifying_seq_ops 1806 # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++14" 1807 # endif 1808 # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L 1809 # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++14" 1810 # endif 1811 1812 # ifdef __cpp_lib_sample 1813 # error "__cpp_lib_sample should not be defined before c++17" 1814 # endif 1815 1816 # ifdef __cpp_lib_saturation_arithmetic 1817 # error "__cpp_lib_saturation_arithmetic should not be defined before c++26" 1818 # endif 1819 1820 # ifdef __cpp_lib_scoped_lock 1821 # error "__cpp_lib_scoped_lock should not be defined before c++17" 1822 # endif 1823 1824 # ifdef __cpp_lib_semaphore 1825 # error "__cpp_lib_semaphore should not be defined before c++20" 1826 # endif 1827 1828 # ifdef __cpp_lib_senders 1829 # error "__cpp_lib_senders should not be defined before c++26" 1830 # endif 1831 1832 # ifdef __cpp_lib_shared_mutex 1833 # error "__cpp_lib_shared_mutex should not be defined before c++17" 1834 # endif 1835 1836 # ifdef __cpp_lib_shared_ptr_arrays 1837 # error "__cpp_lib_shared_ptr_arrays should not be defined before c++17" 1838 # endif 1839 1840 # ifdef __cpp_lib_shared_ptr_weak_type 1841 # error "__cpp_lib_shared_ptr_weak_type should not be defined before c++17" 1842 # endif 1843 1844 # if !defined(_LIBCPP_HAS_NO_THREADS) 1845 # ifndef __cpp_lib_shared_timed_mutex 1846 # error "__cpp_lib_shared_timed_mutex should be defined in c++14" 1847 # endif 1848 # if __cpp_lib_shared_timed_mutex != 201402L 1849 # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++14" 1850 # endif 1851 # else 1852 # ifdef __cpp_lib_shared_timed_mutex 1853 # error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 1854 # endif 1855 # endif 1856 1857 # ifdef __cpp_lib_shift 1858 # error "__cpp_lib_shift should not be defined before c++20" 1859 # endif 1860 1861 # ifdef __cpp_lib_smart_ptr_for_overwrite 1862 # error "__cpp_lib_smart_ptr_for_overwrite should not be defined before c++20" 1863 # endif 1864 1865 # ifdef __cpp_lib_smart_ptr_owner_equality 1866 # error "__cpp_lib_smart_ptr_owner_equality should not be defined before c++26" 1867 # endif 1868 1869 # ifdef __cpp_lib_source_location 1870 # error "__cpp_lib_source_location should not be defined before c++20" 1871 # endif 1872 1873 # ifdef __cpp_lib_span 1874 # error "__cpp_lib_span should not be defined before c++20" 1875 # endif 1876 1877 # ifdef __cpp_lib_span_at 1878 # error "__cpp_lib_span_at should not be defined before c++26" 1879 # endif 1880 1881 # ifdef __cpp_lib_span_initializer_list 1882 # error "__cpp_lib_span_initializer_list should not be defined before c++26" 1883 # endif 1884 1885 # ifdef __cpp_lib_spanstream 1886 # error "__cpp_lib_spanstream should not be defined before c++23" 1887 # endif 1888 1889 # ifdef __cpp_lib_ssize 1890 # error "__cpp_lib_ssize should not be defined before c++20" 1891 # endif 1892 1893 # ifdef __cpp_lib_sstream_from_string_view 1894 # error "__cpp_lib_sstream_from_string_view should not be defined before c++26" 1895 # endif 1896 1897 # ifdef __cpp_lib_stacktrace 1898 # error "__cpp_lib_stacktrace should not be defined before c++23" 1899 # endif 1900 1901 # ifdef __cpp_lib_starts_ends_with 1902 # error "__cpp_lib_starts_ends_with should not be defined before c++20" 1903 # endif 1904 1905 # ifdef __cpp_lib_stdatomic_h 1906 # error "__cpp_lib_stdatomic_h should not be defined before c++23" 1907 # endif 1908 1909 # ifdef __cpp_lib_string_contains 1910 # error "__cpp_lib_string_contains should not be defined before c++23" 1911 # endif 1912 1913 # ifdef __cpp_lib_string_resize_and_overwrite 1914 # error "__cpp_lib_string_resize_and_overwrite should not be defined before c++23" 1915 # endif 1916 1917 # ifndef __cpp_lib_string_udls 1918 # error "__cpp_lib_string_udls should be defined in c++14" 1919 # endif 1920 # if __cpp_lib_string_udls != 201304L 1921 # error "__cpp_lib_string_udls should have the value 201304L in c++14" 1922 # endif 1923 1924 # ifdef __cpp_lib_string_view 1925 # error "__cpp_lib_string_view should not be defined before c++17" 1926 # endif 1927 1928 # ifdef __cpp_lib_submdspan 1929 # error "__cpp_lib_submdspan should not be defined before c++26" 1930 # endif 1931 1932 # ifdef __cpp_lib_syncbuf 1933 # error "__cpp_lib_syncbuf should not be defined before c++20" 1934 # endif 1935 1936 # ifdef __cpp_lib_text_encoding 1937 # error "__cpp_lib_text_encoding should not be defined before c++26" 1938 # endif 1939 1940 # ifdef __cpp_lib_three_way_comparison 1941 # error "__cpp_lib_three_way_comparison should not be defined before c++20" 1942 # endif 1943 1944 # ifdef __cpp_lib_to_address 1945 # error "__cpp_lib_to_address should not be defined before c++20" 1946 # endif 1947 1948 # ifdef __cpp_lib_to_array 1949 # error "__cpp_lib_to_array should not be defined before c++20" 1950 # endif 1951 1952 # ifdef __cpp_lib_to_chars 1953 # error "__cpp_lib_to_chars should not be defined before c++17" 1954 # endif 1955 1956 # ifdef __cpp_lib_to_string 1957 # error "__cpp_lib_to_string should not be defined before c++26" 1958 # endif 1959 1960 # ifdef __cpp_lib_to_underlying 1961 # error "__cpp_lib_to_underlying should not be defined before c++23" 1962 # endif 1963 1964 # ifndef __cpp_lib_transformation_trait_aliases 1965 # error "__cpp_lib_transformation_trait_aliases should be defined in c++14" 1966 # endif 1967 # if __cpp_lib_transformation_trait_aliases != 201304L 1968 # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++14" 1969 # endif 1970 1971 # ifndef __cpp_lib_transparent_operators 1972 # error "__cpp_lib_transparent_operators should be defined in c++14" 1973 # endif 1974 # if __cpp_lib_transparent_operators != 201210L 1975 # error "__cpp_lib_transparent_operators should have the value 201210L in c++14" 1976 # endif 1977 1978 # ifndef __cpp_lib_tuple_element_t 1979 # error "__cpp_lib_tuple_element_t should be defined in c++14" 1980 # endif 1981 # if __cpp_lib_tuple_element_t != 201402L 1982 # error "__cpp_lib_tuple_element_t should have the value 201402L in c++14" 1983 # endif 1984 1985 # ifdef __cpp_lib_tuple_like 1986 # error "__cpp_lib_tuple_like should not be defined before c++23" 1987 # endif 1988 1989 # ifndef __cpp_lib_tuples_by_type 1990 # error "__cpp_lib_tuples_by_type should be defined in c++14" 1991 # endif 1992 # if __cpp_lib_tuples_by_type != 201304L 1993 # error "__cpp_lib_tuples_by_type should have the value 201304L in c++14" 1994 # endif 1995 1996 # ifdef __cpp_lib_type_identity 1997 # error "__cpp_lib_type_identity should not be defined before c++20" 1998 # endif 1999 2000 # ifdef __cpp_lib_type_trait_variable_templates 2001 # error "__cpp_lib_type_trait_variable_templates should not be defined before c++17" 2002 # endif 2003 2004 # ifdef __cpp_lib_uncaught_exceptions 2005 # error "__cpp_lib_uncaught_exceptions should not be defined before c++17" 2006 # endif 2007 2008 # ifdef __cpp_lib_unordered_map_try_emplace 2009 # error "__cpp_lib_unordered_map_try_emplace should not be defined before c++17" 2010 # endif 2011 2012 # ifdef __cpp_lib_unreachable 2013 # error "__cpp_lib_unreachable should not be defined before c++23" 2014 # endif 2015 2016 # ifdef __cpp_lib_unwrap_ref 2017 # error "__cpp_lib_unwrap_ref should not be defined before c++20" 2018 # endif 2019 2020 # ifdef __cpp_lib_variant 2021 # error "__cpp_lib_variant should not be defined before c++17" 2022 # endif 2023 2024 # ifdef __cpp_lib_void_t 2025 # error "__cpp_lib_void_t should not be defined before c++17" 2026 # endif 2027 2028 #elif TEST_STD_VER == 17 2029 2030 # ifdef __cpp_lib_adaptor_iterator_pair_constructor 2031 # error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23" 2032 # endif 2033 2034 # ifndef __cpp_lib_addressof_constexpr 2035 # error "__cpp_lib_addressof_constexpr should be defined in c++17" 2036 # endif 2037 # if __cpp_lib_addressof_constexpr != 201603L 2038 # error "__cpp_lib_addressof_constexpr should have the value 201603L in c++17" 2039 # endif 2040 2041 # ifdef __cpp_lib_allocate_at_least 2042 # error "__cpp_lib_allocate_at_least should not be defined before c++23" 2043 # endif 2044 2045 # ifndef __cpp_lib_allocator_traits_is_always_equal 2046 # error "__cpp_lib_allocator_traits_is_always_equal should be defined in c++17" 2047 # endif 2048 # if __cpp_lib_allocator_traits_is_always_equal != 201411L 2049 # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++17" 2050 # endif 2051 2052 # ifndef __cpp_lib_any 2053 # error "__cpp_lib_any should be defined in c++17" 2054 # endif 2055 # if __cpp_lib_any != 201606L 2056 # error "__cpp_lib_any should have the value 201606L in c++17" 2057 # endif 2058 2059 # ifndef __cpp_lib_apply 2060 # error "__cpp_lib_apply should be defined in c++17" 2061 # endif 2062 # if __cpp_lib_apply != 201603L 2063 # error "__cpp_lib_apply should have the value 201603L in c++17" 2064 # endif 2065 2066 # ifndef __cpp_lib_array_constexpr 2067 # error "__cpp_lib_array_constexpr should be defined in c++17" 2068 # endif 2069 # if __cpp_lib_array_constexpr != 201603L 2070 # error "__cpp_lib_array_constexpr should have the value 201603L in c++17" 2071 # endif 2072 2073 # ifndef __cpp_lib_as_const 2074 # error "__cpp_lib_as_const should be defined in c++17" 2075 # endif 2076 # if __cpp_lib_as_const != 201510L 2077 # error "__cpp_lib_as_const should have the value 201510L in c++17" 2078 # endif 2079 2080 # ifdef __cpp_lib_associative_heterogeneous_erasure 2081 # error "__cpp_lib_associative_heterogeneous_erasure should not be defined before c++23" 2082 # endif 2083 2084 # ifdef __cpp_lib_associative_heterogeneous_insertion 2085 # error "__cpp_lib_associative_heterogeneous_insertion should not be defined before c++26" 2086 # endif 2087 2088 # ifdef __cpp_lib_assume_aligned 2089 # error "__cpp_lib_assume_aligned should not be defined before c++20" 2090 # endif 2091 2092 # ifdef __cpp_lib_atomic_flag_test 2093 # error "__cpp_lib_atomic_flag_test should not be defined before c++20" 2094 # endif 2095 2096 # ifdef __cpp_lib_atomic_float 2097 # error "__cpp_lib_atomic_float should not be defined before c++20" 2098 # endif 2099 2100 # ifndef __cpp_lib_atomic_is_always_lock_free 2101 # error "__cpp_lib_atomic_is_always_lock_free should be defined in c++17" 2102 # endif 2103 # if __cpp_lib_atomic_is_always_lock_free != 201603L 2104 # error "__cpp_lib_atomic_is_always_lock_free should have the value 201603L in c++17" 2105 # endif 2106 2107 # ifdef __cpp_lib_atomic_lock_free_type_aliases 2108 # error "__cpp_lib_atomic_lock_free_type_aliases should not be defined before c++20" 2109 # endif 2110 2111 # ifdef __cpp_lib_atomic_min_max 2112 # error "__cpp_lib_atomic_min_max should not be defined before c++26" 2113 # endif 2114 2115 # ifdef __cpp_lib_atomic_ref 2116 # error "__cpp_lib_atomic_ref should not be defined before c++20" 2117 # endif 2118 2119 # ifdef __cpp_lib_atomic_shared_ptr 2120 # error "__cpp_lib_atomic_shared_ptr should not be defined before c++20" 2121 # endif 2122 2123 # ifdef __cpp_lib_atomic_value_initialization 2124 # error "__cpp_lib_atomic_value_initialization should not be defined before c++20" 2125 # endif 2126 2127 # ifdef __cpp_lib_atomic_wait 2128 # error "__cpp_lib_atomic_wait should not be defined before c++20" 2129 # endif 2130 2131 # ifdef __cpp_lib_barrier 2132 # error "__cpp_lib_barrier should not be defined before c++20" 2133 # endif 2134 2135 # ifdef __cpp_lib_bind_back 2136 # error "__cpp_lib_bind_back should not be defined before c++23" 2137 # endif 2138 2139 # ifdef __cpp_lib_bind_front 2140 # error "__cpp_lib_bind_front should not be defined before c++20" 2141 # endif 2142 2143 # ifdef __cpp_lib_bit_cast 2144 # error "__cpp_lib_bit_cast should not be defined before c++20" 2145 # endif 2146 2147 # ifdef __cpp_lib_bitops 2148 # error "__cpp_lib_bitops should not be defined before c++20" 2149 # endif 2150 2151 # ifdef __cpp_lib_bitset 2152 # error "__cpp_lib_bitset should not be defined before c++26" 2153 # endif 2154 2155 # ifndef __cpp_lib_bool_constant 2156 # error "__cpp_lib_bool_constant should be defined in c++17" 2157 # endif 2158 # if __cpp_lib_bool_constant != 201505L 2159 # error "__cpp_lib_bool_constant should have the value 201505L in c++17" 2160 # endif 2161 2162 # ifdef __cpp_lib_bounded_array_traits 2163 # error "__cpp_lib_bounded_array_traits should not be defined before c++20" 2164 # endif 2165 2166 # ifndef __cpp_lib_boyer_moore_searcher 2167 # error "__cpp_lib_boyer_moore_searcher should be defined in c++17" 2168 # endif 2169 # if __cpp_lib_boyer_moore_searcher != 201603L 2170 # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++17" 2171 # endif 2172 2173 # ifndef __cpp_lib_byte 2174 # error "__cpp_lib_byte should be defined in c++17" 2175 # endif 2176 # if __cpp_lib_byte != 201603L 2177 # error "__cpp_lib_byte should have the value 201603L in c++17" 2178 # endif 2179 2180 # ifdef __cpp_lib_byteswap 2181 # error "__cpp_lib_byteswap should not be defined before c++23" 2182 # endif 2183 2184 # ifdef __cpp_lib_char8_t 2185 # error "__cpp_lib_char8_t should not be defined before c++20" 2186 # endif 2187 2188 # ifndef __cpp_lib_chrono 2189 # error "__cpp_lib_chrono should be defined in c++17" 2190 # endif 2191 # if __cpp_lib_chrono != 201611L 2192 # error "__cpp_lib_chrono should have the value 201611L in c++17" 2193 # endif 2194 2195 # ifndef __cpp_lib_chrono_udls 2196 # error "__cpp_lib_chrono_udls should be defined in c++17" 2197 # endif 2198 # if __cpp_lib_chrono_udls != 201304L 2199 # error "__cpp_lib_chrono_udls should have the value 201304L in c++17" 2200 # endif 2201 2202 # ifndef __cpp_lib_clamp 2203 # error "__cpp_lib_clamp should be defined in c++17" 2204 # endif 2205 # if __cpp_lib_clamp != 201603L 2206 # error "__cpp_lib_clamp should have the value 201603L in c++17" 2207 # endif 2208 2209 # ifndef __cpp_lib_complex_udls 2210 # error "__cpp_lib_complex_udls should be defined in c++17" 2211 # endif 2212 # if __cpp_lib_complex_udls != 201309L 2213 # error "__cpp_lib_complex_udls should have the value 201309L in c++17" 2214 # endif 2215 2216 # ifdef __cpp_lib_concepts 2217 # error "__cpp_lib_concepts should not be defined before c++20" 2218 # endif 2219 2220 # ifdef __cpp_lib_constexpr_algorithms 2221 # error "__cpp_lib_constexpr_algorithms should not be defined before c++20" 2222 # endif 2223 2224 # ifdef __cpp_lib_constexpr_bitset 2225 # error "__cpp_lib_constexpr_bitset should not be defined before c++23" 2226 # endif 2227 2228 # ifdef __cpp_lib_constexpr_charconv 2229 # error "__cpp_lib_constexpr_charconv should not be defined before c++23" 2230 # endif 2231 2232 # ifdef __cpp_lib_constexpr_cmath 2233 # error "__cpp_lib_constexpr_cmath should not be defined before c++23" 2234 # endif 2235 2236 # ifdef __cpp_lib_constexpr_complex 2237 # error "__cpp_lib_constexpr_complex should not be defined before c++20" 2238 # endif 2239 2240 # ifdef __cpp_lib_constexpr_dynamic_alloc 2241 # error "__cpp_lib_constexpr_dynamic_alloc should not be defined before c++20" 2242 # endif 2243 2244 # ifdef __cpp_lib_constexpr_functional 2245 # error "__cpp_lib_constexpr_functional should not be defined before c++20" 2246 # endif 2247 2248 # ifdef __cpp_lib_constexpr_iterator 2249 # error "__cpp_lib_constexpr_iterator should not be defined before c++20" 2250 # endif 2251 2252 # ifdef __cpp_lib_constexpr_memory 2253 # error "__cpp_lib_constexpr_memory should not be defined before c++20" 2254 # endif 2255 2256 # ifdef __cpp_lib_constexpr_new 2257 # error "__cpp_lib_constexpr_new should not be defined before c++26" 2258 # endif 2259 2260 # ifdef __cpp_lib_constexpr_numeric 2261 # error "__cpp_lib_constexpr_numeric should not be defined before c++20" 2262 # endif 2263 2264 # ifdef __cpp_lib_constexpr_string 2265 # error "__cpp_lib_constexpr_string should not be defined before c++20" 2266 # endif 2267 2268 # ifdef __cpp_lib_constexpr_string_view 2269 # error "__cpp_lib_constexpr_string_view should not be defined before c++20" 2270 # endif 2271 2272 # ifdef __cpp_lib_constexpr_tuple 2273 # error "__cpp_lib_constexpr_tuple should not be defined before c++20" 2274 # endif 2275 2276 # ifdef __cpp_lib_constexpr_typeinfo 2277 # error "__cpp_lib_constexpr_typeinfo should not be defined before c++23" 2278 # endif 2279 2280 # ifdef __cpp_lib_constexpr_utility 2281 # error "__cpp_lib_constexpr_utility should not be defined before c++20" 2282 # endif 2283 2284 # ifdef __cpp_lib_constexpr_vector 2285 # error "__cpp_lib_constexpr_vector should not be defined before c++20" 2286 # endif 2287 2288 # ifdef __cpp_lib_constrained_equality 2289 # error "__cpp_lib_constrained_equality should not be defined before c++26" 2290 # endif 2291 2292 # ifdef __cpp_lib_containers_ranges 2293 # error "__cpp_lib_containers_ranges should not be defined before c++23" 2294 # endif 2295 2296 # ifdef __cpp_lib_copyable_function 2297 # error "__cpp_lib_copyable_function should not be defined before c++26" 2298 # endif 2299 2300 # ifdef __cpp_lib_coroutine 2301 # error "__cpp_lib_coroutine should not be defined before c++20" 2302 # endif 2303 2304 # ifdef __cpp_lib_debugging 2305 # error "__cpp_lib_debugging should not be defined before c++26" 2306 # endif 2307 2308 # ifdef __cpp_lib_default_template_type_for_algorithm_values 2309 # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26" 2310 # endif 2311 2312 # ifdef __cpp_lib_destroying_delete 2313 # error "__cpp_lib_destroying_delete should not be defined before c++20" 2314 # endif 2315 2316 # ifndef __cpp_lib_enable_shared_from_this 2317 # error "__cpp_lib_enable_shared_from_this should be defined in c++17" 2318 # endif 2319 # if __cpp_lib_enable_shared_from_this != 201603L 2320 # error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++17" 2321 # endif 2322 2323 # ifdef __cpp_lib_endian 2324 # error "__cpp_lib_endian should not be defined before c++20" 2325 # endif 2326 2327 # ifdef __cpp_lib_erase_if 2328 # error "__cpp_lib_erase_if should not be defined before c++20" 2329 # endif 2330 2331 # ifndef __cpp_lib_exchange_function 2332 # error "__cpp_lib_exchange_function should be defined in c++17" 2333 # endif 2334 # if __cpp_lib_exchange_function != 201304L 2335 # error "__cpp_lib_exchange_function should have the value 201304L in c++17" 2336 # endif 2337 2338 # if !defined(_LIBCPP_VERSION) 2339 # ifndef __cpp_lib_execution 2340 # error "__cpp_lib_execution should be defined in c++17" 2341 # endif 2342 # if __cpp_lib_execution != 201603L 2343 # error "__cpp_lib_execution should have the value 201603L in c++17" 2344 # endif 2345 # else // _LIBCPP_VERSION 2346 # ifdef __cpp_lib_execution 2347 # error "__cpp_lib_execution should not be defined because it is unimplemented in libc++!" 2348 # endif 2349 # endif 2350 2351 # ifdef __cpp_lib_expected 2352 # error "__cpp_lib_expected should not be defined before c++23" 2353 # endif 2354 2355 # if !defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY) 2356 # ifndef __cpp_lib_filesystem 2357 # error "__cpp_lib_filesystem should be defined in c++17" 2358 # endif 2359 # if __cpp_lib_filesystem != 201703L 2360 # error "__cpp_lib_filesystem should have the value 201703L in c++17" 2361 # endif 2362 # else 2363 # ifdef __cpp_lib_filesystem 2364 # error "__cpp_lib_filesystem should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY)' is not met!" 2365 # endif 2366 # endif 2367 2368 # ifdef __cpp_lib_format 2369 # error "__cpp_lib_format should not be defined before c++20" 2370 # endif 2371 2372 # ifdef __cpp_lib_format_path 2373 # error "__cpp_lib_format_path should not be defined before c++26" 2374 # endif 2375 2376 # ifdef __cpp_lib_format_ranges 2377 # error "__cpp_lib_format_ranges should not be defined before c++23" 2378 # endif 2379 2380 # ifdef __cpp_lib_format_uchar 2381 # error "__cpp_lib_format_uchar should not be defined before c++20" 2382 # endif 2383 2384 # ifdef __cpp_lib_formatters 2385 # error "__cpp_lib_formatters should not be defined before c++23" 2386 # endif 2387 2388 # ifdef __cpp_lib_forward_like 2389 # error "__cpp_lib_forward_like should not be defined before c++23" 2390 # endif 2391 2392 # ifdef __cpp_lib_freestanding_algorithm 2393 # error "__cpp_lib_freestanding_algorithm should not be defined before c++26" 2394 # endif 2395 2396 # ifdef __cpp_lib_freestanding_array 2397 # error "__cpp_lib_freestanding_array should not be defined before c++26" 2398 # endif 2399 2400 # ifdef __cpp_lib_freestanding_cstring 2401 # error "__cpp_lib_freestanding_cstring should not be defined before c++26" 2402 # endif 2403 2404 # ifdef __cpp_lib_freestanding_expected 2405 # error "__cpp_lib_freestanding_expected should not be defined before c++26" 2406 # endif 2407 2408 # ifdef __cpp_lib_freestanding_mdspan 2409 # error "__cpp_lib_freestanding_mdspan should not be defined before c++26" 2410 # endif 2411 2412 # ifdef __cpp_lib_freestanding_optional 2413 # error "__cpp_lib_freestanding_optional should not be defined before c++26" 2414 # endif 2415 2416 # ifdef __cpp_lib_freestanding_string_view 2417 # error "__cpp_lib_freestanding_string_view should not be defined before c++26" 2418 # endif 2419 2420 # ifdef __cpp_lib_freestanding_variant 2421 # error "__cpp_lib_freestanding_variant should not be defined before c++26" 2422 # endif 2423 2424 # ifdef __cpp_lib_fstream_native_handle 2425 # error "__cpp_lib_fstream_native_handle should not be defined before c++26" 2426 # endif 2427 2428 # ifdef __cpp_lib_function_ref 2429 # error "__cpp_lib_function_ref should not be defined before c++26" 2430 # endif 2431 2432 # ifndef __cpp_lib_gcd_lcm 2433 # error "__cpp_lib_gcd_lcm should be defined in c++17" 2434 # endif 2435 # if __cpp_lib_gcd_lcm != 201606L 2436 # error "__cpp_lib_gcd_lcm should have the value 201606L in c++17" 2437 # endif 2438 2439 # ifdef __cpp_lib_generate_random 2440 # error "__cpp_lib_generate_random should not be defined before c++26" 2441 # endif 2442 2443 # ifndef __cpp_lib_generic_associative_lookup 2444 # error "__cpp_lib_generic_associative_lookup should be defined in c++17" 2445 # endif 2446 # if __cpp_lib_generic_associative_lookup != 201304L 2447 # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++17" 2448 # endif 2449 2450 # ifdef __cpp_lib_generic_unordered_lookup 2451 # error "__cpp_lib_generic_unordered_lookup should not be defined before c++20" 2452 # endif 2453 2454 # if !defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE)) 2455 # ifndef __cpp_lib_hardware_interference_size 2456 # error "__cpp_lib_hardware_interference_size should be defined in c++17" 2457 # endif 2458 # if __cpp_lib_hardware_interference_size != 201703L 2459 # error "__cpp_lib_hardware_interference_size should have the value 201703L in c++17" 2460 # endif 2461 # else 2462 # ifdef __cpp_lib_hardware_interference_size 2463 # error "__cpp_lib_hardware_interference_size should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE))' is not met!" 2464 # endif 2465 # endif 2466 2467 # ifndef __cpp_lib_has_unique_object_representations 2468 # error "__cpp_lib_has_unique_object_representations should be defined in c++17" 2469 # endif 2470 # if __cpp_lib_has_unique_object_representations != 201606L 2471 # error "__cpp_lib_has_unique_object_representations should have the value 201606L in c++17" 2472 # endif 2473 2474 # ifdef __cpp_lib_hazard_pointer 2475 # error "__cpp_lib_hazard_pointer should not be defined before c++26" 2476 # endif 2477 2478 # ifndef __cpp_lib_hypot 2479 # error "__cpp_lib_hypot should be defined in c++17" 2480 # endif 2481 # if __cpp_lib_hypot != 201603L 2482 # error "__cpp_lib_hypot should have the value 201603L in c++17" 2483 # endif 2484 2485 # ifndef __cpp_lib_incomplete_container_elements 2486 # error "__cpp_lib_incomplete_container_elements should be defined in c++17" 2487 # endif 2488 # if __cpp_lib_incomplete_container_elements != 201505L 2489 # error "__cpp_lib_incomplete_container_elements should have the value 201505L in c++17" 2490 # endif 2491 2492 # ifdef __cpp_lib_inplace_vector 2493 # error "__cpp_lib_inplace_vector should not be defined before c++26" 2494 # endif 2495 2496 # ifdef __cpp_lib_int_pow2 2497 # error "__cpp_lib_int_pow2 should not be defined before c++20" 2498 # endif 2499 2500 # ifdef __cpp_lib_integer_comparison_functions 2501 # error "__cpp_lib_integer_comparison_functions should not be defined before c++20" 2502 # endif 2503 2504 # ifndef __cpp_lib_integer_sequence 2505 # error "__cpp_lib_integer_sequence should be defined in c++17" 2506 # endif 2507 # if __cpp_lib_integer_sequence != 201304L 2508 # error "__cpp_lib_integer_sequence should have the value 201304L in c++17" 2509 # endif 2510 2511 # ifndef __cpp_lib_integral_constant_callable 2512 # error "__cpp_lib_integral_constant_callable should be defined in c++17" 2513 # endif 2514 # if __cpp_lib_integral_constant_callable != 201304L 2515 # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++17" 2516 # endif 2517 2518 # ifdef __cpp_lib_interpolate 2519 # error "__cpp_lib_interpolate should not be defined before c++20" 2520 # endif 2521 2522 # ifndef __cpp_lib_invoke 2523 # error "__cpp_lib_invoke should be defined in c++17" 2524 # endif 2525 # if __cpp_lib_invoke != 201411L 2526 # error "__cpp_lib_invoke should have the value 201411L in c++17" 2527 # endif 2528 2529 # ifdef __cpp_lib_invoke_r 2530 # error "__cpp_lib_invoke_r should not be defined before c++23" 2531 # endif 2532 2533 # ifdef __cpp_lib_ios_noreplace 2534 # error "__cpp_lib_ios_noreplace should not be defined before c++23" 2535 # endif 2536 2537 # ifndef __cpp_lib_is_aggregate 2538 # error "__cpp_lib_is_aggregate should be defined in c++17" 2539 # endif 2540 # if __cpp_lib_is_aggregate != 201703L 2541 # error "__cpp_lib_is_aggregate should have the value 201703L in c++17" 2542 # endif 2543 2544 # ifdef __cpp_lib_is_constant_evaluated 2545 # error "__cpp_lib_is_constant_evaluated should not be defined before c++20" 2546 # endif 2547 2548 # ifndef __cpp_lib_is_final 2549 # error "__cpp_lib_is_final should be defined in c++17" 2550 # endif 2551 # if __cpp_lib_is_final != 201402L 2552 # error "__cpp_lib_is_final should have the value 201402L in c++17" 2553 # endif 2554 2555 # ifndef __cpp_lib_is_invocable 2556 # error "__cpp_lib_is_invocable should be defined in c++17" 2557 # endif 2558 # if __cpp_lib_is_invocable != 201703L 2559 # error "__cpp_lib_is_invocable should have the value 201703L in c++17" 2560 # endif 2561 2562 # ifdef __cpp_lib_is_layout_compatible 2563 # error "__cpp_lib_is_layout_compatible should not be defined before c++20" 2564 # endif 2565 2566 # ifdef __cpp_lib_is_nothrow_convertible 2567 # error "__cpp_lib_is_nothrow_convertible should not be defined before c++20" 2568 # endif 2569 2570 # ifndef __cpp_lib_is_null_pointer 2571 # error "__cpp_lib_is_null_pointer should be defined in c++17" 2572 # endif 2573 # if __cpp_lib_is_null_pointer != 201309L 2574 # error "__cpp_lib_is_null_pointer should have the value 201309L in c++17" 2575 # endif 2576 2577 # ifdef __cpp_lib_is_pointer_interconvertible 2578 # error "__cpp_lib_is_pointer_interconvertible should not be defined before c++20" 2579 # endif 2580 2581 # ifdef __cpp_lib_is_scoped_enum 2582 # error "__cpp_lib_is_scoped_enum should not be defined before c++23" 2583 # endif 2584 2585 # ifndef __cpp_lib_is_swappable 2586 # error "__cpp_lib_is_swappable should be defined in c++17" 2587 # endif 2588 # if __cpp_lib_is_swappable != 201603L 2589 # error "__cpp_lib_is_swappable should have the value 201603L in c++17" 2590 # endif 2591 2592 # ifdef __cpp_lib_is_virtual_base_of 2593 # error "__cpp_lib_is_virtual_base_of should not be defined before c++26" 2594 # endif 2595 2596 # ifdef __cpp_lib_is_within_lifetime 2597 # error "__cpp_lib_is_within_lifetime should not be defined before c++26" 2598 # endif 2599 2600 # ifdef __cpp_lib_jthread 2601 # error "__cpp_lib_jthread should not be defined before c++20" 2602 # endif 2603 2604 # ifdef __cpp_lib_latch 2605 # error "__cpp_lib_latch should not be defined before c++20" 2606 # endif 2607 2608 # ifndef __cpp_lib_launder 2609 # error "__cpp_lib_launder should be defined in c++17" 2610 # endif 2611 # if __cpp_lib_launder != 201606L 2612 # error "__cpp_lib_launder should have the value 201606L in c++17" 2613 # endif 2614 2615 # ifdef __cpp_lib_linalg 2616 # error "__cpp_lib_linalg should not be defined before c++26" 2617 # endif 2618 2619 # ifdef __cpp_lib_list_remove_return_type 2620 # error "__cpp_lib_list_remove_return_type should not be defined before c++20" 2621 # endif 2622 2623 # ifndef __cpp_lib_logical_traits 2624 # error "__cpp_lib_logical_traits should be defined in c++17" 2625 # endif 2626 # if __cpp_lib_logical_traits != 201510L 2627 # error "__cpp_lib_logical_traits should have the value 201510L in c++17" 2628 # endif 2629 2630 # ifndef __cpp_lib_make_from_tuple 2631 # error "__cpp_lib_make_from_tuple should be defined in c++17" 2632 # endif 2633 # if __cpp_lib_make_from_tuple != 201606L 2634 # error "__cpp_lib_make_from_tuple should have the value 201606L in c++17" 2635 # endif 2636 2637 # ifndef __cpp_lib_make_reverse_iterator 2638 # error "__cpp_lib_make_reverse_iterator should be defined in c++17" 2639 # endif 2640 # if __cpp_lib_make_reverse_iterator != 201402L 2641 # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++17" 2642 # endif 2643 2644 # ifndef __cpp_lib_make_unique 2645 # error "__cpp_lib_make_unique should be defined in c++17" 2646 # endif 2647 # if __cpp_lib_make_unique != 201304L 2648 # error "__cpp_lib_make_unique should have the value 201304L in c++17" 2649 # endif 2650 2651 # ifndef __cpp_lib_map_try_emplace 2652 # error "__cpp_lib_map_try_emplace should be defined in c++17" 2653 # endif 2654 # if __cpp_lib_map_try_emplace != 201411L 2655 # error "__cpp_lib_map_try_emplace should have the value 201411L in c++17" 2656 # endif 2657 2658 # ifdef __cpp_lib_math_constants 2659 # error "__cpp_lib_math_constants should not be defined before c++20" 2660 # endif 2661 2662 # if !defined(_LIBCPP_VERSION) 2663 # ifndef __cpp_lib_math_special_functions 2664 # error "__cpp_lib_math_special_functions should be defined in c++17" 2665 # endif 2666 # if __cpp_lib_math_special_functions != 201603L 2667 # error "__cpp_lib_math_special_functions should have the value 201603L in c++17" 2668 # endif 2669 # else // _LIBCPP_VERSION 2670 # ifdef __cpp_lib_math_special_functions 2671 # error "__cpp_lib_math_special_functions should not be defined because it is unimplemented in libc++!" 2672 # endif 2673 # endif 2674 2675 # ifdef __cpp_lib_mdspan 2676 # error "__cpp_lib_mdspan should not be defined before c++23" 2677 # endif 2678 2679 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR 2680 # ifndef __cpp_lib_memory_resource 2681 # error "__cpp_lib_memory_resource should be defined in c++17" 2682 # endif 2683 # if __cpp_lib_memory_resource != 201603L 2684 # error "__cpp_lib_memory_resource should have the value 201603L in c++17" 2685 # endif 2686 # else 2687 # ifdef __cpp_lib_memory_resource 2688 # error "__cpp_lib_memory_resource should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR' is not met!" 2689 # endif 2690 # endif 2691 2692 # ifdef __cpp_lib_modules 2693 # error "__cpp_lib_modules should not be defined before c++23" 2694 # endif 2695 2696 # ifdef __cpp_lib_move_iterator_concept 2697 # error "__cpp_lib_move_iterator_concept should not be defined before c++20" 2698 # endif 2699 2700 # ifdef __cpp_lib_move_only_function 2701 # error "__cpp_lib_move_only_function should not be defined before c++23" 2702 # endif 2703 2704 # ifndef __cpp_lib_node_extract 2705 # error "__cpp_lib_node_extract should be defined in c++17" 2706 # endif 2707 # if __cpp_lib_node_extract != 201606L 2708 # error "__cpp_lib_node_extract should have the value 201606L in c++17" 2709 # endif 2710 2711 # ifndef __cpp_lib_nonmember_container_access 2712 # error "__cpp_lib_nonmember_container_access should be defined in c++17" 2713 # endif 2714 # if __cpp_lib_nonmember_container_access != 201411L 2715 # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++17" 2716 # endif 2717 2718 # ifndef __cpp_lib_not_fn 2719 # error "__cpp_lib_not_fn should be defined in c++17" 2720 # endif 2721 # if __cpp_lib_not_fn != 201603L 2722 # error "__cpp_lib_not_fn should have the value 201603L in c++17" 2723 # endif 2724 2725 # ifndef __cpp_lib_null_iterators 2726 # error "__cpp_lib_null_iterators should be defined in c++17" 2727 # endif 2728 # if __cpp_lib_null_iterators != 201304L 2729 # error "__cpp_lib_null_iterators should have the value 201304L in c++17" 2730 # endif 2731 2732 # ifndef __cpp_lib_optional 2733 # error "__cpp_lib_optional should be defined in c++17" 2734 # endif 2735 # if __cpp_lib_optional != 201606L 2736 # error "__cpp_lib_optional should have the value 201606L in c++17" 2737 # endif 2738 2739 # ifdef __cpp_lib_optional_range_support 2740 # error "__cpp_lib_optional_range_support should not be defined before c++26" 2741 # endif 2742 2743 # ifdef __cpp_lib_out_ptr 2744 # error "__cpp_lib_out_ptr should not be defined before c++23" 2745 # endif 2746 2747 # if !defined(_LIBCPP_VERSION) 2748 # ifndef __cpp_lib_parallel_algorithm 2749 # error "__cpp_lib_parallel_algorithm should be defined in c++17" 2750 # endif 2751 # if __cpp_lib_parallel_algorithm != 201603L 2752 # error "__cpp_lib_parallel_algorithm should have the value 201603L in c++17" 2753 # endif 2754 # else // _LIBCPP_VERSION 2755 # ifdef __cpp_lib_parallel_algorithm 2756 # error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!" 2757 # endif 2758 # endif 2759 2760 # ifdef __cpp_lib_philox_engine 2761 # error "__cpp_lib_philox_engine should not be defined before c++26" 2762 # endif 2763 2764 # ifdef __cpp_lib_polymorphic_allocator 2765 # error "__cpp_lib_polymorphic_allocator should not be defined before c++20" 2766 # endif 2767 2768 # ifdef __cpp_lib_print 2769 # error "__cpp_lib_print should not be defined before c++23" 2770 # endif 2771 2772 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION) 2773 # ifndef __cpp_lib_quoted_string_io 2774 # error "__cpp_lib_quoted_string_io should be defined in c++17" 2775 # endif 2776 # if __cpp_lib_quoted_string_io != 201304L 2777 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++17" 2778 # endif 2779 # else 2780 # ifdef __cpp_lib_quoted_string_io 2781 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!" 2782 # endif 2783 # endif 2784 2785 # ifdef __cpp_lib_ranges 2786 # error "__cpp_lib_ranges should not be defined before c++20" 2787 # endif 2788 2789 # ifdef __cpp_lib_ranges_as_const 2790 # error "__cpp_lib_ranges_as_const should not be defined before c++23" 2791 # endif 2792 2793 # ifdef __cpp_lib_ranges_as_rvalue 2794 # error "__cpp_lib_ranges_as_rvalue should not be defined before c++23" 2795 # endif 2796 2797 # ifdef __cpp_lib_ranges_chunk 2798 # error "__cpp_lib_ranges_chunk should not be defined before c++23" 2799 # endif 2800 2801 # ifdef __cpp_lib_ranges_chunk_by 2802 # error "__cpp_lib_ranges_chunk_by should not be defined before c++23" 2803 # endif 2804 2805 # ifdef __cpp_lib_ranges_concat 2806 # error "__cpp_lib_ranges_concat should not be defined before c++26" 2807 # endif 2808 2809 # ifdef __cpp_lib_ranges_contains 2810 # error "__cpp_lib_ranges_contains should not be defined before c++23" 2811 # endif 2812 2813 # ifdef __cpp_lib_ranges_iota 2814 # error "__cpp_lib_ranges_iota should not be defined before c++23" 2815 # endif 2816 2817 # ifdef __cpp_lib_ranges_join_with 2818 # error "__cpp_lib_ranges_join_with should not be defined before c++23" 2819 # endif 2820 2821 # ifdef __cpp_lib_ranges_repeat 2822 # error "__cpp_lib_ranges_repeat should not be defined before c++23" 2823 # endif 2824 2825 # ifdef __cpp_lib_ranges_slide 2826 # error "__cpp_lib_ranges_slide should not be defined before c++23" 2827 # endif 2828 2829 # ifdef __cpp_lib_ranges_starts_ends_with 2830 # error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23" 2831 # endif 2832 2833 # ifdef __cpp_lib_ranges_to_container 2834 # error "__cpp_lib_ranges_to_container should not be defined before c++23" 2835 # endif 2836 2837 # ifdef __cpp_lib_ranges_zip 2838 # error "__cpp_lib_ranges_zip should not be defined before c++23" 2839 # endif 2840 2841 # ifdef __cpp_lib_ratio 2842 # error "__cpp_lib_ratio should not be defined before c++26" 2843 # endif 2844 2845 # ifndef __cpp_lib_raw_memory_algorithms 2846 # error "__cpp_lib_raw_memory_algorithms should be defined in c++17" 2847 # endif 2848 # if __cpp_lib_raw_memory_algorithms != 201606L 2849 # error "__cpp_lib_raw_memory_algorithms should have the value 201606L in c++17" 2850 # endif 2851 2852 # ifdef __cpp_lib_rcu 2853 # error "__cpp_lib_rcu should not be defined before c++26" 2854 # endif 2855 2856 # ifdef __cpp_lib_reference_from_temporary 2857 # error "__cpp_lib_reference_from_temporary should not be defined before c++23" 2858 # endif 2859 2860 # ifdef __cpp_lib_reference_wrapper 2861 # error "__cpp_lib_reference_wrapper should not be defined before c++26" 2862 # endif 2863 2864 # ifdef __cpp_lib_remove_cvref 2865 # error "__cpp_lib_remove_cvref should not be defined before c++20" 2866 # endif 2867 2868 # ifndef __cpp_lib_result_of_sfinae 2869 # error "__cpp_lib_result_of_sfinae should be defined in c++17" 2870 # endif 2871 # if __cpp_lib_result_of_sfinae != 201210L 2872 # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++17" 2873 # endif 2874 2875 # ifndef __cpp_lib_robust_nonmodifying_seq_ops 2876 # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++17" 2877 # endif 2878 # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L 2879 # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++17" 2880 # endif 2881 2882 # ifndef __cpp_lib_sample 2883 # error "__cpp_lib_sample should be defined in c++17" 2884 # endif 2885 # if __cpp_lib_sample != 201603L 2886 # error "__cpp_lib_sample should have the value 201603L in c++17" 2887 # endif 2888 2889 # ifdef __cpp_lib_saturation_arithmetic 2890 # error "__cpp_lib_saturation_arithmetic should not be defined before c++26" 2891 # endif 2892 2893 # if !defined(_LIBCPP_HAS_NO_THREADS) 2894 # ifndef __cpp_lib_scoped_lock 2895 # error "__cpp_lib_scoped_lock should be defined in c++17" 2896 # endif 2897 # if __cpp_lib_scoped_lock != 201703L 2898 # error "__cpp_lib_scoped_lock should have the value 201703L in c++17" 2899 # endif 2900 # else 2901 # ifdef __cpp_lib_scoped_lock 2902 # error "__cpp_lib_scoped_lock should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 2903 # endif 2904 # endif 2905 2906 # ifdef __cpp_lib_semaphore 2907 # error "__cpp_lib_semaphore should not be defined before c++20" 2908 # endif 2909 2910 # ifdef __cpp_lib_senders 2911 # error "__cpp_lib_senders should not be defined before c++26" 2912 # endif 2913 2914 # if !defined(_LIBCPP_HAS_NO_THREADS) 2915 # ifndef __cpp_lib_shared_mutex 2916 # error "__cpp_lib_shared_mutex should be defined in c++17" 2917 # endif 2918 # if __cpp_lib_shared_mutex != 201505L 2919 # error "__cpp_lib_shared_mutex should have the value 201505L in c++17" 2920 # endif 2921 # else 2922 # ifdef __cpp_lib_shared_mutex 2923 # error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 2924 # endif 2925 # endif 2926 2927 # ifndef __cpp_lib_shared_ptr_arrays 2928 # error "__cpp_lib_shared_ptr_arrays should be defined in c++17" 2929 # endif 2930 # if __cpp_lib_shared_ptr_arrays != 201611L 2931 # error "__cpp_lib_shared_ptr_arrays should have the value 201611L in c++17" 2932 # endif 2933 2934 # ifndef __cpp_lib_shared_ptr_weak_type 2935 # error "__cpp_lib_shared_ptr_weak_type should be defined in c++17" 2936 # endif 2937 # if __cpp_lib_shared_ptr_weak_type != 201606L 2938 # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++17" 2939 # endif 2940 2941 # if !defined(_LIBCPP_HAS_NO_THREADS) 2942 # ifndef __cpp_lib_shared_timed_mutex 2943 # error "__cpp_lib_shared_timed_mutex should be defined in c++17" 2944 # endif 2945 # if __cpp_lib_shared_timed_mutex != 201402L 2946 # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++17" 2947 # endif 2948 # else 2949 # ifdef __cpp_lib_shared_timed_mutex 2950 # error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 2951 # endif 2952 # endif 2953 2954 # ifdef __cpp_lib_shift 2955 # error "__cpp_lib_shift should not be defined before c++20" 2956 # endif 2957 2958 # ifdef __cpp_lib_smart_ptr_for_overwrite 2959 # error "__cpp_lib_smart_ptr_for_overwrite should not be defined before c++20" 2960 # endif 2961 2962 # ifdef __cpp_lib_smart_ptr_owner_equality 2963 # error "__cpp_lib_smart_ptr_owner_equality should not be defined before c++26" 2964 # endif 2965 2966 # ifdef __cpp_lib_source_location 2967 # error "__cpp_lib_source_location should not be defined before c++20" 2968 # endif 2969 2970 # ifdef __cpp_lib_span 2971 # error "__cpp_lib_span should not be defined before c++20" 2972 # endif 2973 2974 # ifdef __cpp_lib_span_at 2975 # error "__cpp_lib_span_at should not be defined before c++26" 2976 # endif 2977 2978 # ifdef __cpp_lib_span_initializer_list 2979 # error "__cpp_lib_span_initializer_list should not be defined before c++26" 2980 # endif 2981 2982 # ifdef __cpp_lib_spanstream 2983 # error "__cpp_lib_spanstream should not be defined before c++23" 2984 # endif 2985 2986 # ifdef __cpp_lib_ssize 2987 # error "__cpp_lib_ssize should not be defined before c++20" 2988 # endif 2989 2990 # ifdef __cpp_lib_sstream_from_string_view 2991 # error "__cpp_lib_sstream_from_string_view should not be defined before c++26" 2992 # endif 2993 2994 # ifdef __cpp_lib_stacktrace 2995 # error "__cpp_lib_stacktrace should not be defined before c++23" 2996 # endif 2997 2998 # ifdef __cpp_lib_starts_ends_with 2999 # error "__cpp_lib_starts_ends_with should not be defined before c++20" 3000 # endif 3001 3002 # ifdef __cpp_lib_stdatomic_h 3003 # error "__cpp_lib_stdatomic_h should not be defined before c++23" 3004 # endif 3005 3006 # ifdef __cpp_lib_string_contains 3007 # error "__cpp_lib_string_contains should not be defined before c++23" 3008 # endif 3009 3010 # ifdef __cpp_lib_string_resize_and_overwrite 3011 # error "__cpp_lib_string_resize_and_overwrite should not be defined before c++23" 3012 # endif 3013 3014 # ifndef __cpp_lib_string_udls 3015 # error "__cpp_lib_string_udls should be defined in c++17" 3016 # endif 3017 # if __cpp_lib_string_udls != 201304L 3018 # error "__cpp_lib_string_udls should have the value 201304L in c++17" 3019 # endif 3020 3021 # ifndef __cpp_lib_string_view 3022 # error "__cpp_lib_string_view should be defined in c++17" 3023 # endif 3024 # if __cpp_lib_string_view != 201606L 3025 # error "__cpp_lib_string_view should have the value 201606L in c++17" 3026 # endif 3027 3028 # ifdef __cpp_lib_submdspan 3029 # error "__cpp_lib_submdspan should not be defined before c++26" 3030 # endif 3031 3032 # ifdef __cpp_lib_syncbuf 3033 # error "__cpp_lib_syncbuf should not be defined before c++20" 3034 # endif 3035 3036 # ifdef __cpp_lib_text_encoding 3037 # error "__cpp_lib_text_encoding should not be defined before c++26" 3038 # endif 3039 3040 # ifdef __cpp_lib_three_way_comparison 3041 # error "__cpp_lib_three_way_comparison should not be defined before c++20" 3042 # endif 3043 3044 # ifdef __cpp_lib_to_address 3045 # error "__cpp_lib_to_address should not be defined before c++20" 3046 # endif 3047 3048 # ifdef __cpp_lib_to_array 3049 # error "__cpp_lib_to_array should not be defined before c++20" 3050 # endif 3051 3052 # if !defined(_LIBCPP_VERSION) 3053 # ifndef __cpp_lib_to_chars 3054 # error "__cpp_lib_to_chars should be defined in c++17" 3055 # endif 3056 # if __cpp_lib_to_chars != 201611L 3057 # error "__cpp_lib_to_chars should have the value 201611L in c++17" 3058 # endif 3059 # else // _LIBCPP_VERSION 3060 # ifdef __cpp_lib_to_chars 3061 # error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" 3062 # endif 3063 # endif 3064 3065 # ifdef __cpp_lib_to_string 3066 # error "__cpp_lib_to_string should not be defined before c++26" 3067 # endif 3068 3069 # ifdef __cpp_lib_to_underlying 3070 # error "__cpp_lib_to_underlying should not be defined before c++23" 3071 # endif 3072 3073 # ifndef __cpp_lib_transformation_trait_aliases 3074 # error "__cpp_lib_transformation_trait_aliases should be defined in c++17" 3075 # endif 3076 # if __cpp_lib_transformation_trait_aliases != 201304L 3077 # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++17" 3078 # endif 3079 3080 # ifndef __cpp_lib_transparent_operators 3081 # error "__cpp_lib_transparent_operators should be defined in c++17" 3082 # endif 3083 # if __cpp_lib_transparent_operators != 201510L 3084 # error "__cpp_lib_transparent_operators should have the value 201510L in c++17" 3085 # endif 3086 3087 # ifndef __cpp_lib_tuple_element_t 3088 # error "__cpp_lib_tuple_element_t should be defined in c++17" 3089 # endif 3090 # if __cpp_lib_tuple_element_t != 201402L 3091 # error "__cpp_lib_tuple_element_t should have the value 201402L in c++17" 3092 # endif 3093 3094 # ifdef __cpp_lib_tuple_like 3095 # error "__cpp_lib_tuple_like should not be defined before c++23" 3096 # endif 3097 3098 # ifndef __cpp_lib_tuples_by_type 3099 # error "__cpp_lib_tuples_by_type should be defined in c++17" 3100 # endif 3101 # if __cpp_lib_tuples_by_type != 201304L 3102 # error "__cpp_lib_tuples_by_type should have the value 201304L in c++17" 3103 # endif 3104 3105 # ifdef __cpp_lib_type_identity 3106 # error "__cpp_lib_type_identity should not be defined before c++20" 3107 # endif 3108 3109 # ifndef __cpp_lib_type_trait_variable_templates 3110 # error "__cpp_lib_type_trait_variable_templates should be defined in c++17" 3111 # endif 3112 # if __cpp_lib_type_trait_variable_templates != 201510L 3113 # error "__cpp_lib_type_trait_variable_templates should have the value 201510L in c++17" 3114 # endif 3115 3116 # ifndef __cpp_lib_uncaught_exceptions 3117 # error "__cpp_lib_uncaught_exceptions should be defined in c++17" 3118 # endif 3119 # if __cpp_lib_uncaught_exceptions != 201411L 3120 # error "__cpp_lib_uncaught_exceptions should have the value 201411L in c++17" 3121 # endif 3122 3123 # ifndef __cpp_lib_unordered_map_try_emplace 3124 # error "__cpp_lib_unordered_map_try_emplace should be defined in c++17" 3125 # endif 3126 # if __cpp_lib_unordered_map_try_emplace != 201411L 3127 # error "__cpp_lib_unordered_map_try_emplace should have the value 201411L in c++17" 3128 # endif 3129 3130 # ifdef __cpp_lib_unreachable 3131 # error "__cpp_lib_unreachable should not be defined before c++23" 3132 # endif 3133 3134 # ifdef __cpp_lib_unwrap_ref 3135 # error "__cpp_lib_unwrap_ref should not be defined before c++20" 3136 # endif 3137 3138 # ifndef __cpp_lib_variant 3139 # error "__cpp_lib_variant should be defined in c++17" 3140 # endif 3141 # if __cpp_lib_variant != 202102L 3142 # error "__cpp_lib_variant should have the value 202102L in c++17" 3143 # endif 3144 3145 # ifndef __cpp_lib_void_t 3146 # error "__cpp_lib_void_t should be defined in c++17" 3147 # endif 3148 # if __cpp_lib_void_t != 201411L 3149 # error "__cpp_lib_void_t should have the value 201411L in c++17" 3150 # endif 3151 3152 #elif TEST_STD_VER == 20 3153 3154 # ifdef __cpp_lib_adaptor_iterator_pair_constructor 3155 # error "__cpp_lib_adaptor_iterator_pair_constructor should not be defined before c++23" 3156 # endif 3157 3158 # ifndef __cpp_lib_addressof_constexpr 3159 # error "__cpp_lib_addressof_constexpr should be defined in c++20" 3160 # endif 3161 # if __cpp_lib_addressof_constexpr != 201603L 3162 # error "__cpp_lib_addressof_constexpr should have the value 201603L in c++20" 3163 # endif 3164 3165 # ifdef __cpp_lib_allocate_at_least 3166 # error "__cpp_lib_allocate_at_least should not be defined before c++23" 3167 # endif 3168 3169 # ifndef __cpp_lib_allocator_traits_is_always_equal 3170 # error "__cpp_lib_allocator_traits_is_always_equal should be defined in c++20" 3171 # endif 3172 # if __cpp_lib_allocator_traits_is_always_equal != 201411L 3173 # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++20" 3174 # endif 3175 3176 # ifndef __cpp_lib_any 3177 # error "__cpp_lib_any should be defined in c++20" 3178 # endif 3179 # if __cpp_lib_any != 201606L 3180 # error "__cpp_lib_any should have the value 201606L in c++20" 3181 # endif 3182 3183 # ifndef __cpp_lib_apply 3184 # error "__cpp_lib_apply should be defined in c++20" 3185 # endif 3186 # if __cpp_lib_apply != 201603L 3187 # error "__cpp_lib_apply should have the value 201603L in c++20" 3188 # endif 3189 3190 # ifndef __cpp_lib_array_constexpr 3191 # error "__cpp_lib_array_constexpr should be defined in c++20" 3192 # endif 3193 # if __cpp_lib_array_constexpr != 201811L 3194 # error "__cpp_lib_array_constexpr should have the value 201811L in c++20" 3195 # endif 3196 3197 # ifndef __cpp_lib_as_const 3198 # error "__cpp_lib_as_const should be defined in c++20" 3199 # endif 3200 # if __cpp_lib_as_const != 201510L 3201 # error "__cpp_lib_as_const should have the value 201510L in c++20" 3202 # endif 3203 3204 # ifdef __cpp_lib_associative_heterogeneous_erasure 3205 # error "__cpp_lib_associative_heterogeneous_erasure should not be defined before c++23" 3206 # endif 3207 3208 # ifdef __cpp_lib_associative_heterogeneous_insertion 3209 # error "__cpp_lib_associative_heterogeneous_insertion should not be defined before c++26" 3210 # endif 3211 3212 # ifndef __cpp_lib_assume_aligned 3213 # error "__cpp_lib_assume_aligned should be defined in c++20" 3214 # endif 3215 # if __cpp_lib_assume_aligned != 201811L 3216 # error "__cpp_lib_assume_aligned should have the value 201811L in c++20" 3217 # endif 3218 3219 # ifndef __cpp_lib_atomic_flag_test 3220 # error "__cpp_lib_atomic_flag_test should be defined in c++20" 3221 # endif 3222 # if __cpp_lib_atomic_flag_test != 201907L 3223 # error "__cpp_lib_atomic_flag_test should have the value 201907L in c++20" 3224 # endif 3225 3226 # if !defined(_LIBCPP_VERSION) 3227 # ifndef __cpp_lib_atomic_float 3228 # error "__cpp_lib_atomic_float should be defined in c++20" 3229 # endif 3230 # if __cpp_lib_atomic_float != 201711L 3231 # error "__cpp_lib_atomic_float should have the value 201711L in c++20" 3232 # endif 3233 # else // _LIBCPP_VERSION 3234 # ifdef __cpp_lib_atomic_float 3235 # error "__cpp_lib_atomic_float should not be defined because it is unimplemented in libc++!" 3236 # endif 3237 # endif 3238 3239 # ifndef __cpp_lib_atomic_is_always_lock_free 3240 # error "__cpp_lib_atomic_is_always_lock_free should be defined in c++20" 3241 # endif 3242 # if __cpp_lib_atomic_is_always_lock_free != 201603L 3243 # error "__cpp_lib_atomic_is_always_lock_free should have the value 201603L in c++20" 3244 # endif 3245 3246 # ifndef __cpp_lib_atomic_lock_free_type_aliases 3247 # error "__cpp_lib_atomic_lock_free_type_aliases should be defined in c++20" 3248 # endif 3249 # if __cpp_lib_atomic_lock_free_type_aliases != 201907L 3250 # error "__cpp_lib_atomic_lock_free_type_aliases should have the value 201907L in c++20" 3251 # endif 3252 3253 # ifdef __cpp_lib_atomic_min_max 3254 # error "__cpp_lib_atomic_min_max should not be defined before c++26" 3255 # endif 3256 3257 # ifndef __cpp_lib_atomic_ref 3258 # error "__cpp_lib_atomic_ref should be defined in c++20" 3259 # endif 3260 # if __cpp_lib_atomic_ref != 201806L 3261 # error "__cpp_lib_atomic_ref should have the value 201806L in c++20" 3262 # endif 3263 3264 # if !defined(_LIBCPP_VERSION) 3265 # ifndef __cpp_lib_atomic_shared_ptr 3266 # error "__cpp_lib_atomic_shared_ptr should be defined in c++20" 3267 # endif 3268 # if __cpp_lib_atomic_shared_ptr != 201711L 3269 # error "__cpp_lib_atomic_shared_ptr should have the value 201711L in c++20" 3270 # endif 3271 # else // _LIBCPP_VERSION 3272 # ifdef __cpp_lib_atomic_shared_ptr 3273 # error "__cpp_lib_atomic_shared_ptr should not be defined because it is unimplemented in libc++!" 3274 # endif 3275 # endif 3276 3277 # ifndef __cpp_lib_atomic_value_initialization 3278 # error "__cpp_lib_atomic_value_initialization should be defined in c++20" 3279 # endif 3280 # if __cpp_lib_atomic_value_initialization != 201911L 3281 # error "__cpp_lib_atomic_value_initialization should have the value 201911L in c++20" 3282 # endif 3283 3284 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC 3285 # ifndef __cpp_lib_atomic_wait 3286 # error "__cpp_lib_atomic_wait should be defined in c++20" 3287 # endif 3288 # if __cpp_lib_atomic_wait != 201907L 3289 # error "__cpp_lib_atomic_wait should have the value 201907L in c++20" 3290 # endif 3291 # else 3292 # ifdef __cpp_lib_atomic_wait 3293 # error "__cpp_lib_atomic_wait should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC' is not met!" 3294 # endif 3295 # endif 3296 3297 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 3298 # ifndef __cpp_lib_barrier 3299 # error "__cpp_lib_barrier should be defined in c++20" 3300 # endif 3301 # if __cpp_lib_barrier != 201907L 3302 # error "__cpp_lib_barrier should have the value 201907L in c++20" 3303 # endif 3304 # else 3305 # ifdef __cpp_lib_barrier 3306 # error "__cpp_lib_barrier should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 3307 # endif 3308 # endif 3309 3310 # ifdef __cpp_lib_bind_back 3311 # error "__cpp_lib_bind_back should not be defined before c++23" 3312 # endif 3313 3314 # ifndef __cpp_lib_bind_front 3315 # error "__cpp_lib_bind_front should be defined in c++20" 3316 # endif 3317 # if __cpp_lib_bind_front != 201907L 3318 # error "__cpp_lib_bind_front should have the value 201907L in c++20" 3319 # endif 3320 3321 # ifndef __cpp_lib_bit_cast 3322 # error "__cpp_lib_bit_cast should be defined in c++20" 3323 # endif 3324 # if __cpp_lib_bit_cast != 201806L 3325 # error "__cpp_lib_bit_cast should have the value 201806L in c++20" 3326 # endif 3327 3328 # ifndef __cpp_lib_bitops 3329 # error "__cpp_lib_bitops should be defined in c++20" 3330 # endif 3331 # if __cpp_lib_bitops != 201907L 3332 # error "__cpp_lib_bitops should have the value 201907L in c++20" 3333 # endif 3334 3335 # ifdef __cpp_lib_bitset 3336 # error "__cpp_lib_bitset should not be defined before c++26" 3337 # endif 3338 3339 # ifndef __cpp_lib_bool_constant 3340 # error "__cpp_lib_bool_constant should be defined in c++20" 3341 # endif 3342 # if __cpp_lib_bool_constant != 201505L 3343 # error "__cpp_lib_bool_constant should have the value 201505L in c++20" 3344 # endif 3345 3346 # ifndef __cpp_lib_bounded_array_traits 3347 # error "__cpp_lib_bounded_array_traits should be defined in c++20" 3348 # endif 3349 # if __cpp_lib_bounded_array_traits != 201902L 3350 # error "__cpp_lib_bounded_array_traits should have the value 201902L in c++20" 3351 # endif 3352 3353 # ifndef __cpp_lib_boyer_moore_searcher 3354 # error "__cpp_lib_boyer_moore_searcher should be defined in c++20" 3355 # endif 3356 # if __cpp_lib_boyer_moore_searcher != 201603L 3357 # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++20" 3358 # endif 3359 3360 # ifndef __cpp_lib_byte 3361 # error "__cpp_lib_byte should be defined in c++20" 3362 # endif 3363 # if __cpp_lib_byte != 201603L 3364 # error "__cpp_lib_byte should have the value 201603L in c++20" 3365 # endif 3366 3367 # ifdef __cpp_lib_byteswap 3368 # error "__cpp_lib_byteswap should not be defined before c++23" 3369 # endif 3370 3371 # if defined(__cpp_char8_t) 3372 # ifndef __cpp_lib_char8_t 3373 # error "__cpp_lib_char8_t should be defined in c++20" 3374 # endif 3375 # if __cpp_lib_char8_t != 201907L 3376 # error "__cpp_lib_char8_t should have the value 201907L in c++20" 3377 # endif 3378 # else 3379 # ifdef __cpp_lib_char8_t 3380 # error "__cpp_lib_char8_t should not be defined when the requirement 'defined(__cpp_char8_t)' is not met!" 3381 # endif 3382 # endif 3383 3384 # ifndef __cpp_lib_chrono 3385 # error "__cpp_lib_chrono should be defined in c++20" 3386 # endif 3387 # if __cpp_lib_chrono != 201611L 3388 # error "__cpp_lib_chrono should have the value 201611L in c++20" 3389 # endif 3390 3391 # ifndef __cpp_lib_chrono_udls 3392 # error "__cpp_lib_chrono_udls should be defined in c++20" 3393 # endif 3394 # if __cpp_lib_chrono_udls != 201304L 3395 # error "__cpp_lib_chrono_udls should have the value 201304L in c++20" 3396 # endif 3397 3398 # ifndef __cpp_lib_clamp 3399 # error "__cpp_lib_clamp should be defined in c++20" 3400 # endif 3401 # if __cpp_lib_clamp != 201603L 3402 # error "__cpp_lib_clamp should have the value 201603L in c++20" 3403 # endif 3404 3405 # ifndef __cpp_lib_complex_udls 3406 # error "__cpp_lib_complex_udls should be defined in c++20" 3407 # endif 3408 # if __cpp_lib_complex_udls != 201309L 3409 # error "__cpp_lib_complex_udls should have the value 201309L in c++20" 3410 # endif 3411 3412 # ifndef __cpp_lib_concepts 3413 # error "__cpp_lib_concepts should be defined in c++20" 3414 # endif 3415 # if __cpp_lib_concepts != 202002L 3416 # error "__cpp_lib_concepts should have the value 202002L in c++20" 3417 # endif 3418 3419 # ifndef __cpp_lib_constexpr_algorithms 3420 # error "__cpp_lib_constexpr_algorithms should be defined in c++20" 3421 # endif 3422 # if __cpp_lib_constexpr_algorithms != 201806L 3423 # error "__cpp_lib_constexpr_algorithms should have the value 201806L in c++20" 3424 # endif 3425 3426 # ifdef __cpp_lib_constexpr_bitset 3427 # error "__cpp_lib_constexpr_bitset should not be defined before c++23" 3428 # endif 3429 3430 # ifdef __cpp_lib_constexpr_charconv 3431 # error "__cpp_lib_constexpr_charconv should not be defined before c++23" 3432 # endif 3433 3434 # ifdef __cpp_lib_constexpr_cmath 3435 # error "__cpp_lib_constexpr_cmath should not be defined before c++23" 3436 # endif 3437 3438 # ifndef __cpp_lib_constexpr_complex 3439 # error "__cpp_lib_constexpr_complex should be defined in c++20" 3440 # endif 3441 # if __cpp_lib_constexpr_complex != 201711L 3442 # error "__cpp_lib_constexpr_complex should have the value 201711L in c++20" 3443 # endif 3444 3445 # ifndef __cpp_lib_constexpr_dynamic_alloc 3446 # error "__cpp_lib_constexpr_dynamic_alloc should be defined in c++20" 3447 # endif 3448 # if __cpp_lib_constexpr_dynamic_alloc != 201907L 3449 # error "__cpp_lib_constexpr_dynamic_alloc should have the value 201907L in c++20" 3450 # endif 3451 3452 # ifndef __cpp_lib_constexpr_functional 3453 # error "__cpp_lib_constexpr_functional should be defined in c++20" 3454 # endif 3455 # if __cpp_lib_constexpr_functional != 201907L 3456 # error "__cpp_lib_constexpr_functional should have the value 201907L in c++20" 3457 # endif 3458 3459 # ifndef __cpp_lib_constexpr_iterator 3460 # error "__cpp_lib_constexpr_iterator should be defined in c++20" 3461 # endif 3462 # if __cpp_lib_constexpr_iterator != 201811L 3463 # error "__cpp_lib_constexpr_iterator should have the value 201811L in c++20" 3464 # endif 3465 3466 # ifndef __cpp_lib_constexpr_memory 3467 # error "__cpp_lib_constexpr_memory should be defined in c++20" 3468 # endif 3469 # if __cpp_lib_constexpr_memory != 201811L 3470 # error "__cpp_lib_constexpr_memory should have the value 201811L in c++20" 3471 # endif 3472 3473 # ifdef __cpp_lib_constexpr_new 3474 # error "__cpp_lib_constexpr_new should not be defined before c++26" 3475 # endif 3476 3477 # ifndef __cpp_lib_constexpr_numeric 3478 # error "__cpp_lib_constexpr_numeric should be defined in c++20" 3479 # endif 3480 # if __cpp_lib_constexpr_numeric != 201911L 3481 # error "__cpp_lib_constexpr_numeric should have the value 201911L in c++20" 3482 # endif 3483 3484 # ifndef __cpp_lib_constexpr_string 3485 # error "__cpp_lib_constexpr_string should be defined in c++20" 3486 # endif 3487 # if __cpp_lib_constexpr_string != 201907L 3488 # error "__cpp_lib_constexpr_string should have the value 201907L in c++20" 3489 # endif 3490 3491 # ifndef __cpp_lib_constexpr_string_view 3492 # error "__cpp_lib_constexpr_string_view should be defined in c++20" 3493 # endif 3494 # if __cpp_lib_constexpr_string_view != 201811L 3495 # error "__cpp_lib_constexpr_string_view should have the value 201811L in c++20" 3496 # endif 3497 3498 # ifndef __cpp_lib_constexpr_tuple 3499 # error "__cpp_lib_constexpr_tuple should be defined in c++20" 3500 # endif 3501 # if __cpp_lib_constexpr_tuple != 201811L 3502 # error "__cpp_lib_constexpr_tuple should have the value 201811L in c++20" 3503 # endif 3504 3505 # ifdef __cpp_lib_constexpr_typeinfo 3506 # error "__cpp_lib_constexpr_typeinfo should not be defined before c++23" 3507 # endif 3508 3509 # ifndef __cpp_lib_constexpr_utility 3510 # error "__cpp_lib_constexpr_utility should be defined in c++20" 3511 # endif 3512 # if __cpp_lib_constexpr_utility != 201811L 3513 # error "__cpp_lib_constexpr_utility should have the value 201811L in c++20" 3514 # endif 3515 3516 # ifndef __cpp_lib_constexpr_vector 3517 # error "__cpp_lib_constexpr_vector should be defined in c++20" 3518 # endif 3519 # if __cpp_lib_constexpr_vector != 201907L 3520 # error "__cpp_lib_constexpr_vector should have the value 201907L in c++20" 3521 # endif 3522 3523 # ifdef __cpp_lib_constrained_equality 3524 # error "__cpp_lib_constrained_equality should not be defined before c++26" 3525 # endif 3526 3527 # ifdef __cpp_lib_containers_ranges 3528 # error "__cpp_lib_containers_ranges should not be defined before c++23" 3529 # endif 3530 3531 # ifdef __cpp_lib_copyable_function 3532 # error "__cpp_lib_copyable_function should not be defined before c++26" 3533 # endif 3534 3535 # ifndef __cpp_lib_coroutine 3536 # error "__cpp_lib_coroutine should be defined in c++20" 3537 # endif 3538 # if __cpp_lib_coroutine != 201902L 3539 # error "__cpp_lib_coroutine should have the value 201902L in c++20" 3540 # endif 3541 3542 # ifdef __cpp_lib_debugging 3543 # error "__cpp_lib_debugging should not be defined before c++26" 3544 # endif 3545 3546 # ifdef __cpp_lib_default_template_type_for_algorithm_values 3547 # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26" 3548 # endif 3549 3550 # if TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L 3551 # ifndef __cpp_lib_destroying_delete 3552 # error "__cpp_lib_destroying_delete should be defined in c++20" 3553 # endif 3554 # if __cpp_lib_destroying_delete != 201806L 3555 # error "__cpp_lib_destroying_delete should have the value 201806L in c++20" 3556 # endif 3557 # else 3558 # ifdef __cpp_lib_destroying_delete 3559 # error "__cpp_lib_destroying_delete should not be defined when the requirement 'TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L' is not met!" 3560 # endif 3561 # endif 3562 3563 # ifndef __cpp_lib_enable_shared_from_this 3564 # error "__cpp_lib_enable_shared_from_this should be defined in c++20" 3565 # endif 3566 # if __cpp_lib_enable_shared_from_this != 201603L 3567 # error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++20" 3568 # endif 3569 3570 # ifndef __cpp_lib_endian 3571 # error "__cpp_lib_endian should be defined in c++20" 3572 # endif 3573 # if __cpp_lib_endian != 201907L 3574 # error "__cpp_lib_endian should have the value 201907L in c++20" 3575 # endif 3576 3577 # ifndef __cpp_lib_erase_if 3578 # error "__cpp_lib_erase_if should be defined in c++20" 3579 # endif 3580 # if __cpp_lib_erase_if != 202002L 3581 # error "__cpp_lib_erase_if should have the value 202002L in c++20" 3582 # endif 3583 3584 # ifndef __cpp_lib_exchange_function 3585 # error "__cpp_lib_exchange_function should be defined in c++20" 3586 # endif 3587 # if __cpp_lib_exchange_function != 201304L 3588 # error "__cpp_lib_exchange_function should have the value 201304L in c++20" 3589 # endif 3590 3591 # if !defined(_LIBCPP_VERSION) 3592 # ifndef __cpp_lib_execution 3593 # error "__cpp_lib_execution should be defined in c++20" 3594 # endif 3595 # if __cpp_lib_execution != 201902L 3596 # error "__cpp_lib_execution should have the value 201902L in c++20" 3597 # endif 3598 # else // _LIBCPP_VERSION 3599 # ifdef __cpp_lib_execution 3600 # error "__cpp_lib_execution should not be defined because it is unimplemented in libc++!" 3601 # endif 3602 # endif 3603 3604 # ifdef __cpp_lib_expected 3605 # error "__cpp_lib_expected should not be defined before c++23" 3606 # endif 3607 3608 # if !defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY) 3609 # ifndef __cpp_lib_filesystem 3610 # error "__cpp_lib_filesystem should be defined in c++20" 3611 # endif 3612 # if __cpp_lib_filesystem != 201703L 3613 # error "__cpp_lib_filesystem should have the value 201703L in c++20" 3614 # endif 3615 # else 3616 # ifdef __cpp_lib_filesystem 3617 # error "__cpp_lib_filesystem should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY)' is not met!" 3618 # endif 3619 # endif 3620 3621 # if !defined(_LIBCPP_VERSION) 3622 # ifndef __cpp_lib_format 3623 # error "__cpp_lib_format should be defined in c++20" 3624 # endif 3625 # if __cpp_lib_format != 202106L 3626 # error "__cpp_lib_format should have the value 202106L in c++20" 3627 # endif 3628 # else // _LIBCPP_VERSION 3629 # ifdef __cpp_lib_format 3630 # error "__cpp_lib_format should not be defined because it is unimplemented in libc++!" 3631 # endif 3632 # endif 3633 3634 # ifdef __cpp_lib_format_path 3635 # error "__cpp_lib_format_path should not be defined before c++26" 3636 # endif 3637 3638 # ifdef __cpp_lib_format_ranges 3639 # error "__cpp_lib_format_ranges should not be defined before c++23" 3640 # endif 3641 3642 # ifndef __cpp_lib_format_uchar 3643 # error "__cpp_lib_format_uchar should be defined in c++20" 3644 # endif 3645 # if __cpp_lib_format_uchar != 202311L 3646 # error "__cpp_lib_format_uchar should have the value 202311L in c++20" 3647 # endif 3648 3649 # ifdef __cpp_lib_formatters 3650 # error "__cpp_lib_formatters should not be defined before c++23" 3651 # endif 3652 3653 # ifdef __cpp_lib_forward_like 3654 # error "__cpp_lib_forward_like should not be defined before c++23" 3655 # endif 3656 3657 # ifdef __cpp_lib_freestanding_algorithm 3658 # error "__cpp_lib_freestanding_algorithm should not be defined before c++26" 3659 # endif 3660 3661 # ifdef __cpp_lib_freestanding_array 3662 # error "__cpp_lib_freestanding_array should not be defined before c++26" 3663 # endif 3664 3665 # ifdef __cpp_lib_freestanding_cstring 3666 # error "__cpp_lib_freestanding_cstring should not be defined before c++26" 3667 # endif 3668 3669 # ifdef __cpp_lib_freestanding_expected 3670 # error "__cpp_lib_freestanding_expected should not be defined before c++26" 3671 # endif 3672 3673 # ifdef __cpp_lib_freestanding_mdspan 3674 # error "__cpp_lib_freestanding_mdspan should not be defined before c++26" 3675 # endif 3676 3677 # ifdef __cpp_lib_freestanding_optional 3678 # error "__cpp_lib_freestanding_optional should not be defined before c++26" 3679 # endif 3680 3681 # ifdef __cpp_lib_freestanding_string_view 3682 # error "__cpp_lib_freestanding_string_view should not be defined before c++26" 3683 # endif 3684 3685 # ifdef __cpp_lib_freestanding_variant 3686 # error "__cpp_lib_freestanding_variant should not be defined before c++26" 3687 # endif 3688 3689 # ifdef __cpp_lib_fstream_native_handle 3690 # error "__cpp_lib_fstream_native_handle should not be defined before c++26" 3691 # endif 3692 3693 # ifdef __cpp_lib_function_ref 3694 # error "__cpp_lib_function_ref should not be defined before c++26" 3695 # endif 3696 3697 # ifndef __cpp_lib_gcd_lcm 3698 # error "__cpp_lib_gcd_lcm should be defined in c++20" 3699 # endif 3700 # if __cpp_lib_gcd_lcm != 201606L 3701 # error "__cpp_lib_gcd_lcm should have the value 201606L in c++20" 3702 # endif 3703 3704 # ifdef __cpp_lib_generate_random 3705 # error "__cpp_lib_generate_random should not be defined before c++26" 3706 # endif 3707 3708 # ifndef __cpp_lib_generic_associative_lookup 3709 # error "__cpp_lib_generic_associative_lookup should be defined in c++20" 3710 # endif 3711 # if __cpp_lib_generic_associative_lookup != 201304L 3712 # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++20" 3713 # endif 3714 3715 # ifndef __cpp_lib_generic_unordered_lookup 3716 # error "__cpp_lib_generic_unordered_lookup should be defined in c++20" 3717 # endif 3718 # if __cpp_lib_generic_unordered_lookup != 201811L 3719 # error "__cpp_lib_generic_unordered_lookup should have the value 201811L in c++20" 3720 # endif 3721 3722 # if !defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE)) 3723 # ifndef __cpp_lib_hardware_interference_size 3724 # error "__cpp_lib_hardware_interference_size should be defined in c++20" 3725 # endif 3726 # if __cpp_lib_hardware_interference_size != 201703L 3727 # error "__cpp_lib_hardware_interference_size should have the value 201703L in c++20" 3728 # endif 3729 # else 3730 # ifdef __cpp_lib_hardware_interference_size 3731 # error "__cpp_lib_hardware_interference_size should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE))' is not met!" 3732 # endif 3733 # endif 3734 3735 # ifndef __cpp_lib_has_unique_object_representations 3736 # error "__cpp_lib_has_unique_object_representations should be defined in c++20" 3737 # endif 3738 # if __cpp_lib_has_unique_object_representations != 201606L 3739 # error "__cpp_lib_has_unique_object_representations should have the value 201606L in c++20" 3740 # endif 3741 3742 # ifdef __cpp_lib_hazard_pointer 3743 # error "__cpp_lib_hazard_pointer should not be defined before c++26" 3744 # endif 3745 3746 # ifndef __cpp_lib_hypot 3747 # error "__cpp_lib_hypot should be defined in c++20" 3748 # endif 3749 # if __cpp_lib_hypot != 201603L 3750 # error "__cpp_lib_hypot should have the value 201603L in c++20" 3751 # endif 3752 3753 # ifndef __cpp_lib_incomplete_container_elements 3754 # error "__cpp_lib_incomplete_container_elements should be defined in c++20" 3755 # endif 3756 # if __cpp_lib_incomplete_container_elements != 201505L 3757 # error "__cpp_lib_incomplete_container_elements should have the value 201505L in c++20" 3758 # endif 3759 3760 # ifdef __cpp_lib_inplace_vector 3761 # error "__cpp_lib_inplace_vector should not be defined before c++26" 3762 # endif 3763 3764 # ifndef __cpp_lib_int_pow2 3765 # error "__cpp_lib_int_pow2 should be defined in c++20" 3766 # endif 3767 # if __cpp_lib_int_pow2 != 202002L 3768 # error "__cpp_lib_int_pow2 should have the value 202002L in c++20" 3769 # endif 3770 3771 # ifndef __cpp_lib_integer_comparison_functions 3772 # error "__cpp_lib_integer_comparison_functions should be defined in c++20" 3773 # endif 3774 # if __cpp_lib_integer_comparison_functions != 202002L 3775 # error "__cpp_lib_integer_comparison_functions should have the value 202002L in c++20" 3776 # endif 3777 3778 # ifndef __cpp_lib_integer_sequence 3779 # error "__cpp_lib_integer_sequence should be defined in c++20" 3780 # endif 3781 # if __cpp_lib_integer_sequence != 201304L 3782 # error "__cpp_lib_integer_sequence should have the value 201304L in c++20" 3783 # endif 3784 3785 # ifndef __cpp_lib_integral_constant_callable 3786 # error "__cpp_lib_integral_constant_callable should be defined in c++20" 3787 # endif 3788 # if __cpp_lib_integral_constant_callable != 201304L 3789 # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++20" 3790 # endif 3791 3792 # ifndef __cpp_lib_interpolate 3793 # error "__cpp_lib_interpolate should be defined in c++20" 3794 # endif 3795 # if __cpp_lib_interpolate != 201902L 3796 # error "__cpp_lib_interpolate should have the value 201902L in c++20" 3797 # endif 3798 3799 # ifndef __cpp_lib_invoke 3800 # error "__cpp_lib_invoke should be defined in c++20" 3801 # endif 3802 # if __cpp_lib_invoke != 201411L 3803 # error "__cpp_lib_invoke should have the value 201411L in c++20" 3804 # endif 3805 3806 # ifdef __cpp_lib_invoke_r 3807 # error "__cpp_lib_invoke_r should not be defined before c++23" 3808 # endif 3809 3810 # ifdef __cpp_lib_ios_noreplace 3811 # error "__cpp_lib_ios_noreplace should not be defined before c++23" 3812 # endif 3813 3814 # ifndef __cpp_lib_is_aggregate 3815 # error "__cpp_lib_is_aggregate should be defined in c++20" 3816 # endif 3817 # if __cpp_lib_is_aggregate != 201703L 3818 # error "__cpp_lib_is_aggregate should have the value 201703L in c++20" 3819 # endif 3820 3821 # ifndef __cpp_lib_is_constant_evaluated 3822 # error "__cpp_lib_is_constant_evaluated should be defined in c++20" 3823 # endif 3824 # if __cpp_lib_is_constant_evaluated != 201811L 3825 # error "__cpp_lib_is_constant_evaluated should have the value 201811L in c++20" 3826 # endif 3827 3828 # ifndef __cpp_lib_is_final 3829 # error "__cpp_lib_is_final should be defined in c++20" 3830 # endif 3831 # if __cpp_lib_is_final != 201402L 3832 # error "__cpp_lib_is_final should have the value 201402L in c++20" 3833 # endif 3834 3835 # ifndef __cpp_lib_is_invocable 3836 # error "__cpp_lib_is_invocable should be defined in c++20" 3837 # endif 3838 # if __cpp_lib_is_invocable != 201703L 3839 # error "__cpp_lib_is_invocable should have the value 201703L in c++20" 3840 # endif 3841 3842 # if !defined(_LIBCPP_VERSION) 3843 # ifndef __cpp_lib_is_layout_compatible 3844 # error "__cpp_lib_is_layout_compatible should be defined in c++20" 3845 # endif 3846 # if __cpp_lib_is_layout_compatible != 201907L 3847 # error "__cpp_lib_is_layout_compatible should have the value 201907L in c++20" 3848 # endif 3849 # else // _LIBCPP_VERSION 3850 # ifdef __cpp_lib_is_layout_compatible 3851 # error "__cpp_lib_is_layout_compatible should not be defined because it is unimplemented in libc++!" 3852 # endif 3853 # endif 3854 3855 # ifndef __cpp_lib_is_nothrow_convertible 3856 # error "__cpp_lib_is_nothrow_convertible should be defined in c++20" 3857 # endif 3858 # if __cpp_lib_is_nothrow_convertible != 201806L 3859 # error "__cpp_lib_is_nothrow_convertible should have the value 201806L in c++20" 3860 # endif 3861 3862 # ifndef __cpp_lib_is_null_pointer 3863 # error "__cpp_lib_is_null_pointer should be defined in c++20" 3864 # endif 3865 # if __cpp_lib_is_null_pointer != 201309L 3866 # error "__cpp_lib_is_null_pointer should have the value 201309L in c++20" 3867 # endif 3868 3869 # if !defined(_LIBCPP_VERSION) 3870 # ifndef __cpp_lib_is_pointer_interconvertible 3871 # error "__cpp_lib_is_pointer_interconvertible should be defined in c++20" 3872 # endif 3873 # if __cpp_lib_is_pointer_interconvertible != 201907L 3874 # error "__cpp_lib_is_pointer_interconvertible should have the value 201907L in c++20" 3875 # endif 3876 # else // _LIBCPP_VERSION 3877 # ifdef __cpp_lib_is_pointer_interconvertible 3878 # error "__cpp_lib_is_pointer_interconvertible should not be defined because it is unimplemented in libc++!" 3879 # endif 3880 # endif 3881 3882 # ifdef __cpp_lib_is_scoped_enum 3883 # error "__cpp_lib_is_scoped_enum should not be defined before c++23" 3884 # endif 3885 3886 # ifndef __cpp_lib_is_swappable 3887 # error "__cpp_lib_is_swappable should be defined in c++20" 3888 # endif 3889 # if __cpp_lib_is_swappable != 201603L 3890 # error "__cpp_lib_is_swappable should have the value 201603L in c++20" 3891 # endif 3892 3893 # ifdef __cpp_lib_is_virtual_base_of 3894 # error "__cpp_lib_is_virtual_base_of should not be defined before c++26" 3895 # endif 3896 3897 # ifdef __cpp_lib_is_within_lifetime 3898 # error "__cpp_lib_is_within_lifetime should not be defined before c++26" 3899 # endif 3900 3901 # if !defined(_LIBCPP_HAS_NO_THREADS) && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 3902 # ifndef __cpp_lib_jthread 3903 # error "__cpp_lib_jthread should be defined in c++20" 3904 # endif 3905 # if __cpp_lib_jthread != 201911L 3906 # error "__cpp_lib_jthread should have the value 201911L in c++20" 3907 # endif 3908 # else 3909 # ifdef __cpp_lib_jthread 3910 # error "__cpp_lib_jthread should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 3911 # endif 3912 # endif 3913 3914 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 3915 # ifndef __cpp_lib_latch 3916 # error "__cpp_lib_latch should be defined in c++20" 3917 # endif 3918 # if __cpp_lib_latch != 201907L 3919 # error "__cpp_lib_latch should have the value 201907L in c++20" 3920 # endif 3921 # else 3922 # ifdef __cpp_lib_latch 3923 # error "__cpp_lib_latch should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 3924 # endif 3925 # endif 3926 3927 # ifndef __cpp_lib_launder 3928 # error "__cpp_lib_launder should be defined in c++20" 3929 # endif 3930 # if __cpp_lib_launder != 201606L 3931 # error "__cpp_lib_launder should have the value 201606L in c++20" 3932 # endif 3933 3934 # ifdef __cpp_lib_linalg 3935 # error "__cpp_lib_linalg should not be defined before c++26" 3936 # endif 3937 3938 # ifndef __cpp_lib_list_remove_return_type 3939 # error "__cpp_lib_list_remove_return_type should be defined in c++20" 3940 # endif 3941 # if __cpp_lib_list_remove_return_type != 201806L 3942 # error "__cpp_lib_list_remove_return_type should have the value 201806L in c++20" 3943 # endif 3944 3945 # ifndef __cpp_lib_logical_traits 3946 # error "__cpp_lib_logical_traits should be defined in c++20" 3947 # endif 3948 # if __cpp_lib_logical_traits != 201510L 3949 # error "__cpp_lib_logical_traits should have the value 201510L in c++20" 3950 # endif 3951 3952 # ifndef __cpp_lib_make_from_tuple 3953 # error "__cpp_lib_make_from_tuple should be defined in c++20" 3954 # endif 3955 # if __cpp_lib_make_from_tuple != 201606L 3956 # error "__cpp_lib_make_from_tuple should have the value 201606L in c++20" 3957 # endif 3958 3959 # ifndef __cpp_lib_make_reverse_iterator 3960 # error "__cpp_lib_make_reverse_iterator should be defined in c++20" 3961 # endif 3962 # if __cpp_lib_make_reverse_iterator != 201402L 3963 # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++20" 3964 # endif 3965 3966 # ifndef __cpp_lib_make_unique 3967 # error "__cpp_lib_make_unique should be defined in c++20" 3968 # endif 3969 # if __cpp_lib_make_unique != 201304L 3970 # error "__cpp_lib_make_unique should have the value 201304L in c++20" 3971 # endif 3972 3973 # ifndef __cpp_lib_map_try_emplace 3974 # error "__cpp_lib_map_try_emplace should be defined in c++20" 3975 # endif 3976 # if __cpp_lib_map_try_emplace != 201411L 3977 # error "__cpp_lib_map_try_emplace should have the value 201411L in c++20" 3978 # endif 3979 3980 # ifndef __cpp_lib_math_constants 3981 # error "__cpp_lib_math_constants should be defined in c++20" 3982 # endif 3983 # if __cpp_lib_math_constants != 201907L 3984 # error "__cpp_lib_math_constants should have the value 201907L in c++20" 3985 # endif 3986 3987 # if !defined(_LIBCPP_VERSION) 3988 # ifndef __cpp_lib_math_special_functions 3989 # error "__cpp_lib_math_special_functions should be defined in c++20" 3990 # endif 3991 # if __cpp_lib_math_special_functions != 201603L 3992 # error "__cpp_lib_math_special_functions should have the value 201603L in c++20" 3993 # endif 3994 # else // _LIBCPP_VERSION 3995 # ifdef __cpp_lib_math_special_functions 3996 # error "__cpp_lib_math_special_functions should not be defined because it is unimplemented in libc++!" 3997 # endif 3998 # endif 3999 4000 # ifdef __cpp_lib_mdspan 4001 # error "__cpp_lib_mdspan should not be defined before c++23" 4002 # endif 4003 4004 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR 4005 # ifndef __cpp_lib_memory_resource 4006 # error "__cpp_lib_memory_resource should be defined in c++20" 4007 # endif 4008 # if __cpp_lib_memory_resource != 201603L 4009 # error "__cpp_lib_memory_resource should have the value 201603L in c++20" 4010 # endif 4011 # else 4012 # ifdef __cpp_lib_memory_resource 4013 # error "__cpp_lib_memory_resource should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR' is not met!" 4014 # endif 4015 # endif 4016 4017 # ifdef __cpp_lib_modules 4018 # error "__cpp_lib_modules should not be defined before c++23" 4019 # endif 4020 4021 # ifndef __cpp_lib_move_iterator_concept 4022 # error "__cpp_lib_move_iterator_concept should be defined in c++20" 4023 # endif 4024 # if __cpp_lib_move_iterator_concept != 202207L 4025 # error "__cpp_lib_move_iterator_concept should have the value 202207L in c++20" 4026 # endif 4027 4028 # ifdef __cpp_lib_move_only_function 4029 # error "__cpp_lib_move_only_function should not be defined before c++23" 4030 # endif 4031 4032 # ifndef __cpp_lib_node_extract 4033 # error "__cpp_lib_node_extract should be defined in c++20" 4034 # endif 4035 # if __cpp_lib_node_extract != 201606L 4036 # error "__cpp_lib_node_extract should have the value 201606L in c++20" 4037 # endif 4038 4039 # ifndef __cpp_lib_nonmember_container_access 4040 # error "__cpp_lib_nonmember_container_access should be defined in c++20" 4041 # endif 4042 # if __cpp_lib_nonmember_container_access != 201411L 4043 # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++20" 4044 # endif 4045 4046 # ifndef __cpp_lib_not_fn 4047 # error "__cpp_lib_not_fn should be defined in c++20" 4048 # endif 4049 # if __cpp_lib_not_fn != 201603L 4050 # error "__cpp_lib_not_fn should have the value 201603L in c++20" 4051 # endif 4052 4053 # ifndef __cpp_lib_null_iterators 4054 # error "__cpp_lib_null_iterators should be defined in c++20" 4055 # endif 4056 # if __cpp_lib_null_iterators != 201304L 4057 # error "__cpp_lib_null_iterators should have the value 201304L in c++20" 4058 # endif 4059 4060 # ifndef __cpp_lib_optional 4061 # error "__cpp_lib_optional should be defined in c++20" 4062 # endif 4063 # if __cpp_lib_optional != 201606L 4064 # error "__cpp_lib_optional should have the value 201606L in c++20" 4065 # endif 4066 4067 # ifdef __cpp_lib_optional_range_support 4068 # error "__cpp_lib_optional_range_support should not be defined before c++26" 4069 # endif 4070 4071 # ifdef __cpp_lib_out_ptr 4072 # error "__cpp_lib_out_ptr should not be defined before c++23" 4073 # endif 4074 4075 # if !defined(_LIBCPP_VERSION) 4076 # ifndef __cpp_lib_parallel_algorithm 4077 # error "__cpp_lib_parallel_algorithm should be defined in c++20" 4078 # endif 4079 # if __cpp_lib_parallel_algorithm != 201603L 4080 # error "__cpp_lib_parallel_algorithm should have the value 201603L in c++20" 4081 # endif 4082 # else // _LIBCPP_VERSION 4083 # ifdef __cpp_lib_parallel_algorithm 4084 # error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!" 4085 # endif 4086 # endif 4087 4088 # ifdef __cpp_lib_philox_engine 4089 # error "__cpp_lib_philox_engine should not be defined before c++26" 4090 # endif 4091 4092 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR 4093 # ifndef __cpp_lib_polymorphic_allocator 4094 # error "__cpp_lib_polymorphic_allocator should be defined in c++20" 4095 # endif 4096 # if __cpp_lib_polymorphic_allocator != 201902L 4097 # error "__cpp_lib_polymorphic_allocator should have the value 201902L in c++20" 4098 # endif 4099 # else 4100 # ifdef __cpp_lib_polymorphic_allocator 4101 # error "__cpp_lib_polymorphic_allocator should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR' is not met!" 4102 # endif 4103 # endif 4104 4105 # ifdef __cpp_lib_print 4106 # error "__cpp_lib_print should not be defined before c++23" 4107 # endif 4108 4109 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION) 4110 # ifndef __cpp_lib_quoted_string_io 4111 # error "__cpp_lib_quoted_string_io should be defined in c++20" 4112 # endif 4113 # if __cpp_lib_quoted_string_io != 201304L 4114 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++20" 4115 # endif 4116 # else 4117 # ifdef __cpp_lib_quoted_string_io 4118 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!" 4119 # endif 4120 # endif 4121 4122 # ifndef __cpp_lib_ranges 4123 # error "__cpp_lib_ranges should be defined in c++20" 4124 # endif 4125 # if __cpp_lib_ranges != 202207L 4126 # error "__cpp_lib_ranges should have the value 202207L in c++20" 4127 # endif 4128 4129 # ifdef __cpp_lib_ranges_as_const 4130 # error "__cpp_lib_ranges_as_const should not be defined before c++23" 4131 # endif 4132 4133 # ifdef __cpp_lib_ranges_as_rvalue 4134 # error "__cpp_lib_ranges_as_rvalue should not be defined before c++23" 4135 # endif 4136 4137 # ifdef __cpp_lib_ranges_chunk 4138 # error "__cpp_lib_ranges_chunk should not be defined before c++23" 4139 # endif 4140 4141 # ifdef __cpp_lib_ranges_chunk_by 4142 # error "__cpp_lib_ranges_chunk_by should not be defined before c++23" 4143 # endif 4144 4145 # ifdef __cpp_lib_ranges_concat 4146 # error "__cpp_lib_ranges_concat should not be defined before c++26" 4147 # endif 4148 4149 # ifdef __cpp_lib_ranges_contains 4150 # error "__cpp_lib_ranges_contains should not be defined before c++23" 4151 # endif 4152 4153 # ifdef __cpp_lib_ranges_iota 4154 # error "__cpp_lib_ranges_iota should not be defined before c++23" 4155 # endif 4156 4157 # ifdef __cpp_lib_ranges_join_with 4158 # error "__cpp_lib_ranges_join_with should not be defined before c++23" 4159 # endif 4160 4161 # ifdef __cpp_lib_ranges_repeat 4162 # error "__cpp_lib_ranges_repeat should not be defined before c++23" 4163 # endif 4164 4165 # ifdef __cpp_lib_ranges_slide 4166 # error "__cpp_lib_ranges_slide should not be defined before c++23" 4167 # endif 4168 4169 # ifdef __cpp_lib_ranges_starts_ends_with 4170 # error "__cpp_lib_ranges_starts_ends_with should not be defined before c++23" 4171 # endif 4172 4173 # ifdef __cpp_lib_ranges_to_container 4174 # error "__cpp_lib_ranges_to_container should not be defined before c++23" 4175 # endif 4176 4177 # ifdef __cpp_lib_ranges_zip 4178 # error "__cpp_lib_ranges_zip should not be defined before c++23" 4179 # endif 4180 4181 # ifdef __cpp_lib_ratio 4182 # error "__cpp_lib_ratio should not be defined before c++26" 4183 # endif 4184 4185 # ifndef __cpp_lib_raw_memory_algorithms 4186 # error "__cpp_lib_raw_memory_algorithms should be defined in c++20" 4187 # endif 4188 # if __cpp_lib_raw_memory_algorithms != 201606L 4189 # error "__cpp_lib_raw_memory_algorithms should have the value 201606L in c++20" 4190 # endif 4191 4192 # ifdef __cpp_lib_rcu 4193 # error "__cpp_lib_rcu should not be defined before c++26" 4194 # endif 4195 4196 # ifdef __cpp_lib_reference_from_temporary 4197 # error "__cpp_lib_reference_from_temporary should not be defined before c++23" 4198 # endif 4199 4200 # ifdef __cpp_lib_reference_wrapper 4201 # error "__cpp_lib_reference_wrapper should not be defined before c++26" 4202 # endif 4203 4204 # ifndef __cpp_lib_remove_cvref 4205 # error "__cpp_lib_remove_cvref should be defined in c++20" 4206 # endif 4207 # if __cpp_lib_remove_cvref != 201711L 4208 # error "__cpp_lib_remove_cvref should have the value 201711L in c++20" 4209 # endif 4210 4211 # ifndef __cpp_lib_result_of_sfinae 4212 # error "__cpp_lib_result_of_sfinae should be defined in c++20" 4213 # endif 4214 # if __cpp_lib_result_of_sfinae != 201210L 4215 # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++20" 4216 # endif 4217 4218 # ifndef __cpp_lib_robust_nonmodifying_seq_ops 4219 # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++20" 4220 # endif 4221 # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L 4222 # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++20" 4223 # endif 4224 4225 # ifndef __cpp_lib_sample 4226 # error "__cpp_lib_sample should be defined in c++20" 4227 # endif 4228 # if __cpp_lib_sample != 201603L 4229 # error "__cpp_lib_sample should have the value 201603L in c++20" 4230 # endif 4231 4232 # ifdef __cpp_lib_saturation_arithmetic 4233 # error "__cpp_lib_saturation_arithmetic should not be defined before c++26" 4234 # endif 4235 4236 # if !defined(_LIBCPP_HAS_NO_THREADS) 4237 # ifndef __cpp_lib_scoped_lock 4238 # error "__cpp_lib_scoped_lock should be defined in c++20" 4239 # endif 4240 # if __cpp_lib_scoped_lock != 201703L 4241 # error "__cpp_lib_scoped_lock should have the value 201703L in c++20" 4242 # endif 4243 # else 4244 # ifdef __cpp_lib_scoped_lock 4245 # error "__cpp_lib_scoped_lock should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 4246 # endif 4247 # endif 4248 4249 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 4250 # ifndef __cpp_lib_semaphore 4251 # error "__cpp_lib_semaphore should be defined in c++20" 4252 # endif 4253 # if __cpp_lib_semaphore != 201907L 4254 # error "__cpp_lib_semaphore should have the value 201907L in c++20" 4255 # endif 4256 # else 4257 # ifdef __cpp_lib_semaphore 4258 # error "__cpp_lib_semaphore should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 4259 # endif 4260 # endif 4261 4262 # ifdef __cpp_lib_senders 4263 # error "__cpp_lib_senders should not be defined before c++26" 4264 # endif 4265 4266 # if !defined(_LIBCPP_HAS_NO_THREADS) 4267 # ifndef __cpp_lib_shared_mutex 4268 # error "__cpp_lib_shared_mutex should be defined in c++20" 4269 # endif 4270 # if __cpp_lib_shared_mutex != 201505L 4271 # error "__cpp_lib_shared_mutex should have the value 201505L in c++20" 4272 # endif 4273 # else 4274 # ifdef __cpp_lib_shared_mutex 4275 # error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 4276 # endif 4277 # endif 4278 4279 # ifndef __cpp_lib_shared_ptr_arrays 4280 # error "__cpp_lib_shared_ptr_arrays should be defined in c++20" 4281 # endif 4282 # if __cpp_lib_shared_ptr_arrays != 201707L 4283 # error "__cpp_lib_shared_ptr_arrays should have the value 201707L in c++20" 4284 # endif 4285 4286 # ifndef __cpp_lib_shared_ptr_weak_type 4287 # error "__cpp_lib_shared_ptr_weak_type should be defined in c++20" 4288 # endif 4289 # if __cpp_lib_shared_ptr_weak_type != 201606L 4290 # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++20" 4291 # endif 4292 4293 # if !defined(_LIBCPP_HAS_NO_THREADS) 4294 # ifndef __cpp_lib_shared_timed_mutex 4295 # error "__cpp_lib_shared_timed_mutex should be defined in c++20" 4296 # endif 4297 # if __cpp_lib_shared_timed_mutex != 201402L 4298 # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++20" 4299 # endif 4300 # else 4301 # ifdef __cpp_lib_shared_timed_mutex 4302 # error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 4303 # endif 4304 # endif 4305 4306 # ifndef __cpp_lib_shift 4307 # error "__cpp_lib_shift should be defined in c++20" 4308 # endif 4309 # if __cpp_lib_shift != 201806L 4310 # error "__cpp_lib_shift should have the value 201806L in c++20" 4311 # endif 4312 4313 # if !defined(_LIBCPP_VERSION) 4314 # ifndef __cpp_lib_smart_ptr_for_overwrite 4315 # error "__cpp_lib_smart_ptr_for_overwrite should be defined in c++20" 4316 # endif 4317 # if __cpp_lib_smart_ptr_for_overwrite != 202002L 4318 # error "__cpp_lib_smart_ptr_for_overwrite should have the value 202002L in c++20" 4319 # endif 4320 # else // _LIBCPP_VERSION 4321 # ifdef __cpp_lib_smart_ptr_for_overwrite 4322 # error "__cpp_lib_smart_ptr_for_overwrite should not be defined because it is unimplemented in libc++!" 4323 # endif 4324 # endif 4325 4326 # ifdef __cpp_lib_smart_ptr_owner_equality 4327 # error "__cpp_lib_smart_ptr_owner_equality should not be defined before c++26" 4328 # endif 4329 4330 # ifndef __cpp_lib_source_location 4331 # error "__cpp_lib_source_location should be defined in c++20" 4332 # endif 4333 # if __cpp_lib_source_location != 201907L 4334 # error "__cpp_lib_source_location should have the value 201907L in c++20" 4335 # endif 4336 4337 # ifndef __cpp_lib_span 4338 # error "__cpp_lib_span should be defined in c++20" 4339 # endif 4340 # if __cpp_lib_span != 202002L 4341 # error "__cpp_lib_span should have the value 202002L in c++20" 4342 # endif 4343 4344 # ifdef __cpp_lib_span_at 4345 # error "__cpp_lib_span_at should not be defined before c++26" 4346 # endif 4347 4348 # ifdef __cpp_lib_span_initializer_list 4349 # error "__cpp_lib_span_initializer_list should not be defined before c++26" 4350 # endif 4351 4352 # ifdef __cpp_lib_spanstream 4353 # error "__cpp_lib_spanstream should not be defined before c++23" 4354 # endif 4355 4356 # ifndef __cpp_lib_ssize 4357 # error "__cpp_lib_ssize should be defined in c++20" 4358 # endif 4359 # if __cpp_lib_ssize != 201902L 4360 # error "__cpp_lib_ssize should have the value 201902L in c++20" 4361 # endif 4362 4363 # ifdef __cpp_lib_sstream_from_string_view 4364 # error "__cpp_lib_sstream_from_string_view should not be defined before c++26" 4365 # endif 4366 4367 # ifdef __cpp_lib_stacktrace 4368 # error "__cpp_lib_stacktrace should not be defined before c++23" 4369 # endif 4370 4371 # ifndef __cpp_lib_starts_ends_with 4372 # error "__cpp_lib_starts_ends_with should be defined in c++20" 4373 # endif 4374 # if __cpp_lib_starts_ends_with != 201711L 4375 # error "__cpp_lib_starts_ends_with should have the value 201711L in c++20" 4376 # endif 4377 4378 # ifdef __cpp_lib_stdatomic_h 4379 # error "__cpp_lib_stdatomic_h should not be defined before c++23" 4380 # endif 4381 4382 # ifdef __cpp_lib_string_contains 4383 # error "__cpp_lib_string_contains should not be defined before c++23" 4384 # endif 4385 4386 # ifdef __cpp_lib_string_resize_and_overwrite 4387 # error "__cpp_lib_string_resize_and_overwrite should not be defined before c++23" 4388 # endif 4389 4390 # ifndef __cpp_lib_string_udls 4391 # error "__cpp_lib_string_udls should be defined in c++20" 4392 # endif 4393 # if __cpp_lib_string_udls != 201304L 4394 # error "__cpp_lib_string_udls should have the value 201304L in c++20" 4395 # endif 4396 4397 # ifndef __cpp_lib_string_view 4398 # error "__cpp_lib_string_view should be defined in c++20" 4399 # endif 4400 # if __cpp_lib_string_view != 201803L 4401 # error "__cpp_lib_string_view should have the value 201803L in c++20" 4402 # endif 4403 4404 # ifdef __cpp_lib_submdspan 4405 # error "__cpp_lib_submdspan should not be defined before c++26" 4406 # endif 4407 4408 # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM) 4409 # ifndef __cpp_lib_syncbuf 4410 # error "__cpp_lib_syncbuf should be defined in c++20" 4411 # endif 4412 # if __cpp_lib_syncbuf != 201803L 4413 # error "__cpp_lib_syncbuf should have the value 201803L in c++20" 4414 # endif 4415 # else 4416 # ifdef __cpp_lib_syncbuf 4417 # error "__cpp_lib_syncbuf should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM)' is not met!" 4418 # endif 4419 # endif 4420 4421 # ifdef __cpp_lib_text_encoding 4422 # error "__cpp_lib_text_encoding should not be defined before c++26" 4423 # endif 4424 4425 # ifndef __cpp_lib_three_way_comparison 4426 # error "__cpp_lib_three_way_comparison should be defined in c++20" 4427 # endif 4428 # if __cpp_lib_three_way_comparison != 201711L 4429 # error "__cpp_lib_three_way_comparison should have the value 201711L in c++20" 4430 # endif 4431 4432 # ifndef __cpp_lib_to_address 4433 # error "__cpp_lib_to_address should be defined in c++20" 4434 # endif 4435 # if __cpp_lib_to_address != 201711L 4436 # error "__cpp_lib_to_address should have the value 201711L in c++20" 4437 # endif 4438 4439 # ifndef __cpp_lib_to_array 4440 # error "__cpp_lib_to_array should be defined in c++20" 4441 # endif 4442 # if __cpp_lib_to_array != 201907L 4443 # error "__cpp_lib_to_array should have the value 201907L in c++20" 4444 # endif 4445 4446 # if !defined(_LIBCPP_VERSION) 4447 # ifndef __cpp_lib_to_chars 4448 # error "__cpp_lib_to_chars should be defined in c++20" 4449 # endif 4450 # if __cpp_lib_to_chars != 201611L 4451 # error "__cpp_lib_to_chars should have the value 201611L in c++20" 4452 # endif 4453 # else // _LIBCPP_VERSION 4454 # ifdef __cpp_lib_to_chars 4455 # error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" 4456 # endif 4457 # endif 4458 4459 # ifdef __cpp_lib_to_string 4460 # error "__cpp_lib_to_string should not be defined before c++26" 4461 # endif 4462 4463 # ifdef __cpp_lib_to_underlying 4464 # error "__cpp_lib_to_underlying should not be defined before c++23" 4465 # endif 4466 4467 # ifndef __cpp_lib_transformation_trait_aliases 4468 # error "__cpp_lib_transformation_trait_aliases should be defined in c++20" 4469 # endif 4470 # if __cpp_lib_transformation_trait_aliases != 201304L 4471 # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++20" 4472 # endif 4473 4474 # ifndef __cpp_lib_transparent_operators 4475 # error "__cpp_lib_transparent_operators should be defined in c++20" 4476 # endif 4477 # if __cpp_lib_transparent_operators != 201510L 4478 # error "__cpp_lib_transparent_operators should have the value 201510L in c++20" 4479 # endif 4480 4481 # ifndef __cpp_lib_tuple_element_t 4482 # error "__cpp_lib_tuple_element_t should be defined in c++20" 4483 # endif 4484 # if __cpp_lib_tuple_element_t != 201402L 4485 # error "__cpp_lib_tuple_element_t should have the value 201402L in c++20" 4486 # endif 4487 4488 # ifdef __cpp_lib_tuple_like 4489 # error "__cpp_lib_tuple_like should not be defined before c++23" 4490 # endif 4491 4492 # ifndef __cpp_lib_tuples_by_type 4493 # error "__cpp_lib_tuples_by_type should be defined in c++20" 4494 # endif 4495 # if __cpp_lib_tuples_by_type != 201304L 4496 # error "__cpp_lib_tuples_by_type should have the value 201304L in c++20" 4497 # endif 4498 4499 # ifndef __cpp_lib_type_identity 4500 # error "__cpp_lib_type_identity should be defined in c++20" 4501 # endif 4502 # if __cpp_lib_type_identity != 201806L 4503 # error "__cpp_lib_type_identity should have the value 201806L in c++20" 4504 # endif 4505 4506 # ifndef __cpp_lib_type_trait_variable_templates 4507 # error "__cpp_lib_type_trait_variable_templates should be defined in c++20" 4508 # endif 4509 # if __cpp_lib_type_trait_variable_templates != 201510L 4510 # error "__cpp_lib_type_trait_variable_templates should have the value 201510L in c++20" 4511 # endif 4512 4513 # ifndef __cpp_lib_uncaught_exceptions 4514 # error "__cpp_lib_uncaught_exceptions should be defined in c++20" 4515 # endif 4516 # if __cpp_lib_uncaught_exceptions != 201411L 4517 # error "__cpp_lib_uncaught_exceptions should have the value 201411L in c++20" 4518 # endif 4519 4520 # ifndef __cpp_lib_unordered_map_try_emplace 4521 # error "__cpp_lib_unordered_map_try_emplace should be defined in c++20" 4522 # endif 4523 # if __cpp_lib_unordered_map_try_emplace != 201411L 4524 # error "__cpp_lib_unordered_map_try_emplace should have the value 201411L in c++20" 4525 # endif 4526 4527 # ifdef __cpp_lib_unreachable 4528 # error "__cpp_lib_unreachable should not be defined before c++23" 4529 # endif 4530 4531 # ifndef __cpp_lib_unwrap_ref 4532 # error "__cpp_lib_unwrap_ref should be defined in c++20" 4533 # endif 4534 # if __cpp_lib_unwrap_ref != 201811L 4535 # error "__cpp_lib_unwrap_ref should have the value 201811L in c++20" 4536 # endif 4537 4538 # ifndef __cpp_lib_variant 4539 # error "__cpp_lib_variant should be defined in c++20" 4540 # endif 4541 # if __cpp_lib_variant != 202102L 4542 # error "__cpp_lib_variant should have the value 202102L in c++20" 4543 # endif 4544 4545 # ifndef __cpp_lib_void_t 4546 # error "__cpp_lib_void_t should be defined in c++20" 4547 # endif 4548 # if __cpp_lib_void_t != 201411L 4549 # error "__cpp_lib_void_t should have the value 201411L in c++20" 4550 # endif 4551 4552 #elif TEST_STD_VER == 23 4553 4554 # ifndef __cpp_lib_adaptor_iterator_pair_constructor 4555 # error "__cpp_lib_adaptor_iterator_pair_constructor should be defined in c++23" 4556 # endif 4557 # if __cpp_lib_adaptor_iterator_pair_constructor != 202106L 4558 # error "__cpp_lib_adaptor_iterator_pair_constructor should have the value 202106L in c++23" 4559 # endif 4560 4561 # ifndef __cpp_lib_addressof_constexpr 4562 # error "__cpp_lib_addressof_constexpr should be defined in c++23" 4563 # endif 4564 # if __cpp_lib_addressof_constexpr != 201603L 4565 # error "__cpp_lib_addressof_constexpr should have the value 201603L in c++23" 4566 # endif 4567 4568 # ifndef __cpp_lib_allocate_at_least 4569 # error "__cpp_lib_allocate_at_least should be defined in c++23" 4570 # endif 4571 # if __cpp_lib_allocate_at_least != 202302L 4572 # error "__cpp_lib_allocate_at_least should have the value 202302L in c++23" 4573 # endif 4574 4575 # ifndef __cpp_lib_allocator_traits_is_always_equal 4576 # error "__cpp_lib_allocator_traits_is_always_equal should be defined in c++23" 4577 # endif 4578 # if __cpp_lib_allocator_traits_is_always_equal != 201411L 4579 # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++23" 4580 # endif 4581 4582 # ifndef __cpp_lib_any 4583 # error "__cpp_lib_any should be defined in c++23" 4584 # endif 4585 # if __cpp_lib_any != 201606L 4586 # error "__cpp_lib_any should have the value 201606L in c++23" 4587 # endif 4588 4589 # ifndef __cpp_lib_apply 4590 # error "__cpp_lib_apply should be defined in c++23" 4591 # endif 4592 # if __cpp_lib_apply != 201603L 4593 # error "__cpp_lib_apply should have the value 201603L in c++23" 4594 # endif 4595 4596 # ifndef __cpp_lib_array_constexpr 4597 # error "__cpp_lib_array_constexpr should be defined in c++23" 4598 # endif 4599 # if __cpp_lib_array_constexpr != 201811L 4600 # error "__cpp_lib_array_constexpr should have the value 201811L in c++23" 4601 # endif 4602 4603 # ifndef __cpp_lib_as_const 4604 # error "__cpp_lib_as_const should be defined in c++23" 4605 # endif 4606 # if __cpp_lib_as_const != 201510L 4607 # error "__cpp_lib_as_const should have the value 201510L in c++23" 4608 # endif 4609 4610 # if !defined(_LIBCPP_VERSION) 4611 # ifndef __cpp_lib_associative_heterogeneous_erasure 4612 # error "__cpp_lib_associative_heterogeneous_erasure should be defined in c++23" 4613 # endif 4614 # if __cpp_lib_associative_heterogeneous_erasure != 202110L 4615 # error "__cpp_lib_associative_heterogeneous_erasure should have the value 202110L in c++23" 4616 # endif 4617 # else // _LIBCPP_VERSION 4618 # ifdef __cpp_lib_associative_heterogeneous_erasure 4619 # error "__cpp_lib_associative_heterogeneous_erasure should not be defined because it is unimplemented in libc++!" 4620 # endif 4621 # endif 4622 4623 # ifdef __cpp_lib_associative_heterogeneous_insertion 4624 # error "__cpp_lib_associative_heterogeneous_insertion should not be defined before c++26" 4625 # endif 4626 4627 # ifndef __cpp_lib_assume_aligned 4628 # error "__cpp_lib_assume_aligned should be defined in c++23" 4629 # endif 4630 # if __cpp_lib_assume_aligned != 201811L 4631 # error "__cpp_lib_assume_aligned should have the value 201811L in c++23" 4632 # endif 4633 4634 # ifndef __cpp_lib_atomic_flag_test 4635 # error "__cpp_lib_atomic_flag_test should be defined in c++23" 4636 # endif 4637 # if __cpp_lib_atomic_flag_test != 201907L 4638 # error "__cpp_lib_atomic_flag_test should have the value 201907L in c++23" 4639 # endif 4640 4641 # if !defined(_LIBCPP_VERSION) 4642 # ifndef __cpp_lib_atomic_float 4643 # error "__cpp_lib_atomic_float should be defined in c++23" 4644 # endif 4645 # if __cpp_lib_atomic_float != 201711L 4646 # error "__cpp_lib_atomic_float should have the value 201711L in c++23" 4647 # endif 4648 # else // _LIBCPP_VERSION 4649 # ifdef __cpp_lib_atomic_float 4650 # error "__cpp_lib_atomic_float should not be defined because it is unimplemented in libc++!" 4651 # endif 4652 # endif 4653 4654 # ifndef __cpp_lib_atomic_is_always_lock_free 4655 # error "__cpp_lib_atomic_is_always_lock_free should be defined in c++23" 4656 # endif 4657 # if __cpp_lib_atomic_is_always_lock_free != 201603L 4658 # error "__cpp_lib_atomic_is_always_lock_free should have the value 201603L in c++23" 4659 # endif 4660 4661 # ifndef __cpp_lib_atomic_lock_free_type_aliases 4662 # error "__cpp_lib_atomic_lock_free_type_aliases should be defined in c++23" 4663 # endif 4664 # if __cpp_lib_atomic_lock_free_type_aliases != 201907L 4665 # error "__cpp_lib_atomic_lock_free_type_aliases should have the value 201907L in c++23" 4666 # endif 4667 4668 # ifdef __cpp_lib_atomic_min_max 4669 # error "__cpp_lib_atomic_min_max should not be defined before c++26" 4670 # endif 4671 4672 # ifndef __cpp_lib_atomic_ref 4673 # error "__cpp_lib_atomic_ref should be defined in c++23" 4674 # endif 4675 # if __cpp_lib_atomic_ref != 201806L 4676 # error "__cpp_lib_atomic_ref should have the value 201806L in c++23" 4677 # endif 4678 4679 # if !defined(_LIBCPP_VERSION) 4680 # ifndef __cpp_lib_atomic_shared_ptr 4681 # error "__cpp_lib_atomic_shared_ptr should be defined in c++23" 4682 # endif 4683 # if __cpp_lib_atomic_shared_ptr != 201711L 4684 # error "__cpp_lib_atomic_shared_ptr should have the value 201711L in c++23" 4685 # endif 4686 # else // _LIBCPP_VERSION 4687 # ifdef __cpp_lib_atomic_shared_ptr 4688 # error "__cpp_lib_atomic_shared_ptr should not be defined because it is unimplemented in libc++!" 4689 # endif 4690 # endif 4691 4692 # ifndef __cpp_lib_atomic_value_initialization 4693 # error "__cpp_lib_atomic_value_initialization should be defined in c++23" 4694 # endif 4695 # if __cpp_lib_atomic_value_initialization != 201911L 4696 # error "__cpp_lib_atomic_value_initialization should have the value 201911L in c++23" 4697 # endif 4698 4699 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC 4700 # ifndef __cpp_lib_atomic_wait 4701 # error "__cpp_lib_atomic_wait should be defined in c++23" 4702 # endif 4703 # if __cpp_lib_atomic_wait != 201907L 4704 # error "__cpp_lib_atomic_wait should have the value 201907L in c++23" 4705 # endif 4706 # else 4707 # ifdef __cpp_lib_atomic_wait 4708 # error "__cpp_lib_atomic_wait should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC' is not met!" 4709 # endif 4710 # endif 4711 4712 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 4713 # ifndef __cpp_lib_barrier 4714 # error "__cpp_lib_barrier should be defined in c++23" 4715 # endif 4716 # if __cpp_lib_barrier != 201907L 4717 # error "__cpp_lib_barrier should have the value 201907L in c++23" 4718 # endif 4719 # else 4720 # ifdef __cpp_lib_barrier 4721 # error "__cpp_lib_barrier should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 4722 # endif 4723 # endif 4724 4725 # ifndef __cpp_lib_bind_back 4726 # error "__cpp_lib_bind_back should be defined in c++23" 4727 # endif 4728 # if __cpp_lib_bind_back != 202202L 4729 # error "__cpp_lib_bind_back should have the value 202202L in c++23" 4730 # endif 4731 4732 # ifndef __cpp_lib_bind_front 4733 # error "__cpp_lib_bind_front should be defined in c++23" 4734 # endif 4735 # if __cpp_lib_bind_front != 201907L 4736 # error "__cpp_lib_bind_front should have the value 201907L in c++23" 4737 # endif 4738 4739 # ifndef __cpp_lib_bit_cast 4740 # error "__cpp_lib_bit_cast should be defined in c++23" 4741 # endif 4742 # if __cpp_lib_bit_cast != 201806L 4743 # error "__cpp_lib_bit_cast should have the value 201806L in c++23" 4744 # endif 4745 4746 # ifndef __cpp_lib_bitops 4747 # error "__cpp_lib_bitops should be defined in c++23" 4748 # endif 4749 # if __cpp_lib_bitops != 201907L 4750 # error "__cpp_lib_bitops should have the value 201907L in c++23" 4751 # endif 4752 4753 # ifdef __cpp_lib_bitset 4754 # error "__cpp_lib_bitset should not be defined before c++26" 4755 # endif 4756 4757 # ifndef __cpp_lib_bool_constant 4758 # error "__cpp_lib_bool_constant should be defined in c++23" 4759 # endif 4760 # if __cpp_lib_bool_constant != 201505L 4761 # error "__cpp_lib_bool_constant should have the value 201505L in c++23" 4762 # endif 4763 4764 # ifndef __cpp_lib_bounded_array_traits 4765 # error "__cpp_lib_bounded_array_traits should be defined in c++23" 4766 # endif 4767 # if __cpp_lib_bounded_array_traits != 201902L 4768 # error "__cpp_lib_bounded_array_traits should have the value 201902L in c++23" 4769 # endif 4770 4771 # ifndef __cpp_lib_boyer_moore_searcher 4772 # error "__cpp_lib_boyer_moore_searcher should be defined in c++23" 4773 # endif 4774 # if __cpp_lib_boyer_moore_searcher != 201603L 4775 # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++23" 4776 # endif 4777 4778 # ifndef __cpp_lib_byte 4779 # error "__cpp_lib_byte should be defined in c++23" 4780 # endif 4781 # if __cpp_lib_byte != 201603L 4782 # error "__cpp_lib_byte should have the value 201603L in c++23" 4783 # endif 4784 4785 # ifndef __cpp_lib_byteswap 4786 # error "__cpp_lib_byteswap should be defined in c++23" 4787 # endif 4788 # if __cpp_lib_byteswap != 202110L 4789 # error "__cpp_lib_byteswap should have the value 202110L in c++23" 4790 # endif 4791 4792 # if defined(__cpp_char8_t) 4793 # ifndef __cpp_lib_char8_t 4794 # error "__cpp_lib_char8_t should be defined in c++23" 4795 # endif 4796 # if __cpp_lib_char8_t != 201907L 4797 # error "__cpp_lib_char8_t should have the value 201907L in c++23" 4798 # endif 4799 # else 4800 # ifdef __cpp_lib_char8_t 4801 # error "__cpp_lib_char8_t should not be defined when the requirement 'defined(__cpp_char8_t)' is not met!" 4802 # endif 4803 # endif 4804 4805 # ifndef __cpp_lib_chrono 4806 # error "__cpp_lib_chrono should be defined in c++23" 4807 # endif 4808 # if __cpp_lib_chrono != 201611L 4809 # error "__cpp_lib_chrono should have the value 201611L in c++23" 4810 # endif 4811 4812 # ifndef __cpp_lib_chrono_udls 4813 # error "__cpp_lib_chrono_udls should be defined in c++23" 4814 # endif 4815 # if __cpp_lib_chrono_udls != 201304L 4816 # error "__cpp_lib_chrono_udls should have the value 201304L in c++23" 4817 # endif 4818 4819 # ifndef __cpp_lib_clamp 4820 # error "__cpp_lib_clamp should be defined in c++23" 4821 # endif 4822 # if __cpp_lib_clamp != 201603L 4823 # error "__cpp_lib_clamp should have the value 201603L in c++23" 4824 # endif 4825 4826 # ifndef __cpp_lib_complex_udls 4827 # error "__cpp_lib_complex_udls should be defined in c++23" 4828 # endif 4829 # if __cpp_lib_complex_udls != 201309L 4830 # error "__cpp_lib_complex_udls should have the value 201309L in c++23" 4831 # endif 4832 4833 # ifndef __cpp_lib_concepts 4834 # error "__cpp_lib_concepts should be defined in c++23" 4835 # endif 4836 # if __cpp_lib_concepts != 202002L 4837 # error "__cpp_lib_concepts should have the value 202002L in c++23" 4838 # endif 4839 4840 # ifndef __cpp_lib_constexpr_algorithms 4841 # error "__cpp_lib_constexpr_algorithms should be defined in c++23" 4842 # endif 4843 # if __cpp_lib_constexpr_algorithms != 201806L 4844 # error "__cpp_lib_constexpr_algorithms should have the value 201806L in c++23" 4845 # endif 4846 4847 # ifndef __cpp_lib_constexpr_bitset 4848 # error "__cpp_lib_constexpr_bitset should be defined in c++23" 4849 # endif 4850 # if __cpp_lib_constexpr_bitset != 202207L 4851 # error "__cpp_lib_constexpr_bitset should have the value 202207L in c++23" 4852 # endif 4853 4854 # ifndef __cpp_lib_constexpr_charconv 4855 # error "__cpp_lib_constexpr_charconv should be defined in c++23" 4856 # endif 4857 # if __cpp_lib_constexpr_charconv != 202207L 4858 # error "__cpp_lib_constexpr_charconv should have the value 202207L in c++23" 4859 # endif 4860 4861 # if !defined(_LIBCPP_VERSION) 4862 # ifndef __cpp_lib_constexpr_cmath 4863 # error "__cpp_lib_constexpr_cmath should be defined in c++23" 4864 # endif 4865 # if __cpp_lib_constexpr_cmath != 202202L 4866 # error "__cpp_lib_constexpr_cmath should have the value 202202L in c++23" 4867 # endif 4868 # else // _LIBCPP_VERSION 4869 # ifdef __cpp_lib_constexpr_cmath 4870 # error "__cpp_lib_constexpr_cmath should not be defined because it is unimplemented in libc++!" 4871 # endif 4872 # endif 4873 4874 # ifndef __cpp_lib_constexpr_complex 4875 # error "__cpp_lib_constexpr_complex should be defined in c++23" 4876 # endif 4877 # if __cpp_lib_constexpr_complex != 201711L 4878 # error "__cpp_lib_constexpr_complex should have the value 201711L in c++23" 4879 # endif 4880 4881 # ifndef __cpp_lib_constexpr_dynamic_alloc 4882 # error "__cpp_lib_constexpr_dynamic_alloc should be defined in c++23" 4883 # endif 4884 # if __cpp_lib_constexpr_dynamic_alloc != 201907L 4885 # error "__cpp_lib_constexpr_dynamic_alloc should have the value 201907L in c++23" 4886 # endif 4887 4888 # ifndef __cpp_lib_constexpr_functional 4889 # error "__cpp_lib_constexpr_functional should be defined in c++23" 4890 # endif 4891 # if __cpp_lib_constexpr_functional != 201907L 4892 # error "__cpp_lib_constexpr_functional should have the value 201907L in c++23" 4893 # endif 4894 4895 # ifndef __cpp_lib_constexpr_iterator 4896 # error "__cpp_lib_constexpr_iterator should be defined in c++23" 4897 # endif 4898 # if __cpp_lib_constexpr_iterator != 201811L 4899 # error "__cpp_lib_constexpr_iterator should have the value 201811L in c++23" 4900 # endif 4901 4902 # ifndef __cpp_lib_constexpr_memory 4903 # error "__cpp_lib_constexpr_memory should be defined in c++23" 4904 # endif 4905 # if __cpp_lib_constexpr_memory != 202202L 4906 # error "__cpp_lib_constexpr_memory should have the value 202202L in c++23" 4907 # endif 4908 4909 # ifdef __cpp_lib_constexpr_new 4910 # error "__cpp_lib_constexpr_new should not be defined before c++26" 4911 # endif 4912 4913 # ifndef __cpp_lib_constexpr_numeric 4914 # error "__cpp_lib_constexpr_numeric should be defined in c++23" 4915 # endif 4916 # if __cpp_lib_constexpr_numeric != 201911L 4917 # error "__cpp_lib_constexpr_numeric should have the value 201911L in c++23" 4918 # endif 4919 4920 # ifndef __cpp_lib_constexpr_string 4921 # error "__cpp_lib_constexpr_string should be defined in c++23" 4922 # endif 4923 # if __cpp_lib_constexpr_string != 201907L 4924 # error "__cpp_lib_constexpr_string should have the value 201907L in c++23" 4925 # endif 4926 4927 # ifndef __cpp_lib_constexpr_string_view 4928 # error "__cpp_lib_constexpr_string_view should be defined in c++23" 4929 # endif 4930 # if __cpp_lib_constexpr_string_view != 201811L 4931 # error "__cpp_lib_constexpr_string_view should have the value 201811L in c++23" 4932 # endif 4933 4934 # ifndef __cpp_lib_constexpr_tuple 4935 # error "__cpp_lib_constexpr_tuple should be defined in c++23" 4936 # endif 4937 # if __cpp_lib_constexpr_tuple != 201811L 4938 # error "__cpp_lib_constexpr_tuple should have the value 201811L in c++23" 4939 # endif 4940 4941 # ifndef __cpp_lib_constexpr_typeinfo 4942 # error "__cpp_lib_constexpr_typeinfo should be defined in c++23" 4943 # endif 4944 # if __cpp_lib_constexpr_typeinfo != 202106L 4945 # error "__cpp_lib_constexpr_typeinfo should have the value 202106L in c++23" 4946 # endif 4947 4948 # ifndef __cpp_lib_constexpr_utility 4949 # error "__cpp_lib_constexpr_utility should be defined in c++23" 4950 # endif 4951 # if __cpp_lib_constexpr_utility != 201811L 4952 # error "__cpp_lib_constexpr_utility should have the value 201811L in c++23" 4953 # endif 4954 4955 # ifndef __cpp_lib_constexpr_vector 4956 # error "__cpp_lib_constexpr_vector should be defined in c++23" 4957 # endif 4958 # if __cpp_lib_constexpr_vector != 201907L 4959 # error "__cpp_lib_constexpr_vector should have the value 201907L in c++23" 4960 # endif 4961 4962 # ifdef __cpp_lib_constrained_equality 4963 # error "__cpp_lib_constrained_equality should not be defined before c++26" 4964 # endif 4965 4966 # ifndef __cpp_lib_containers_ranges 4967 # error "__cpp_lib_containers_ranges should be defined in c++23" 4968 # endif 4969 # if __cpp_lib_containers_ranges != 202202L 4970 # error "__cpp_lib_containers_ranges should have the value 202202L in c++23" 4971 # endif 4972 4973 # ifdef __cpp_lib_copyable_function 4974 # error "__cpp_lib_copyable_function should not be defined before c++26" 4975 # endif 4976 4977 # ifndef __cpp_lib_coroutine 4978 # error "__cpp_lib_coroutine should be defined in c++23" 4979 # endif 4980 # if __cpp_lib_coroutine != 201902L 4981 # error "__cpp_lib_coroutine should have the value 201902L in c++23" 4982 # endif 4983 4984 # ifdef __cpp_lib_debugging 4985 # error "__cpp_lib_debugging should not be defined before c++26" 4986 # endif 4987 4988 # ifdef __cpp_lib_default_template_type_for_algorithm_values 4989 # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined before c++26" 4990 # endif 4991 4992 # if TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L 4993 # ifndef __cpp_lib_destroying_delete 4994 # error "__cpp_lib_destroying_delete should be defined in c++23" 4995 # endif 4996 # if __cpp_lib_destroying_delete != 201806L 4997 # error "__cpp_lib_destroying_delete should have the value 201806L in c++23" 4998 # endif 4999 # else 5000 # ifdef __cpp_lib_destroying_delete 5001 # error "__cpp_lib_destroying_delete should not be defined when the requirement 'TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L' is not met!" 5002 # endif 5003 # endif 5004 5005 # ifndef __cpp_lib_enable_shared_from_this 5006 # error "__cpp_lib_enable_shared_from_this should be defined in c++23" 5007 # endif 5008 # if __cpp_lib_enable_shared_from_this != 201603L 5009 # error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++23" 5010 # endif 5011 5012 # ifndef __cpp_lib_endian 5013 # error "__cpp_lib_endian should be defined in c++23" 5014 # endif 5015 # if __cpp_lib_endian != 201907L 5016 # error "__cpp_lib_endian should have the value 201907L in c++23" 5017 # endif 5018 5019 # ifndef __cpp_lib_erase_if 5020 # error "__cpp_lib_erase_if should be defined in c++23" 5021 # endif 5022 # if __cpp_lib_erase_if != 202002L 5023 # error "__cpp_lib_erase_if should have the value 202002L in c++23" 5024 # endif 5025 5026 # ifndef __cpp_lib_exchange_function 5027 # error "__cpp_lib_exchange_function should be defined in c++23" 5028 # endif 5029 # if __cpp_lib_exchange_function != 201304L 5030 # error "__cpp_lib_exchange_function should have the value 201304L in c++23" 5031 # endif 5032 5033 # if !defined(_LIBCPP_VERSION) 5034 # ifndef __cpp_lib_execution 5035 # error "__cpp_lib_execution should be defined in c++23" 5036 # endif 5037 # if __cpp_lib_execution != 201902L 5038 # error "__cpp_lib_execution should have the value 201902L in c++23" 5039 # endif 5040 # else // _LIBCPP_VERSION 5041 # ifdef __cpp_lib_execution 5042 # error "__cpp_lib_execution should not be defined because it is unimplemented in libc++!" 5043 # endif 5044 # endif 5045 5046 # ifndef __cpp_lib_expected 5047 # error "__cpp_lib_expected should be defined in c++23" 5048 # endif 5049 # if __cpp_lib_expected != 202211L 5050 # error "__cpp_lib_expected should have the value 202211L in c++23" 5051 # endif 5052 5053 # if !defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY) 5054 # ifndef __cpp_lib_filesystem 5055 # error "__cpp_lib_filesystem should be defined in c++23" 5056 # endif 5057 # if __cpp_lib_filesystem != 201703L 5058 # error "__cpp_lib_filesystem should have the value 201703L in c++23" 5059 # endif 5060 # else 5061 # ifdef __cpp_lib_filesystem 5062 # error "__cpp_lib_filesystem should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY)' is not met!" 5063 # endif 5064 # endif 5065 5066 # if !defined(_LIBCPP_VERSION) 5067 # ifndef __cpp_lib_format 5068 # error "__cpp_lib_format should be defined in c++23" 5069 # endif 5070 # if __cpp_lib_format != 202106L 5071 # error "__cpp_lib_format should have the value 202106L in c++23" 5072 # endif 5073 # else // _LIBCPP_VERSION 5074 # ifdef __cpp_lib_format 5075 # error "__cpp_lib_format should not be defined because it is unimplemented in libc++!" 5076 # endif 5077 # endif 5078 5079 # ifdef __cpp_lib_format_path 5080 # error "__cpp_lib_format_path should not be defined before c++26" 5081 # endif 5082 5083 # ifndef __cpp_lib_format_ranges 5084 # error "__cpp_lib_format_ranges should be defined in c++23" 5085 # endif 5086 # if __cpp_lib_format_ranges != 202207L 5087 # error "__cpp_lib_format_ranges should have the value 202207L in c++23" 5088 # endif 5089 5090 # ifndef __cpp_lib_format_uchar 5091 # error "__cpp_lib_format_uchar should be defined in c++23" 5092 # endif 5093 # if __cpp_lib_format_uchar != 202311L 5094 # error "__cpp_lib_format_uchar should have the value 202311L in c++23" 5095 # endif 5096 5097 # if !defined(_LIBCPP_VERSION) 5098 # ifndef __cpp_lib_formatters 5099 # error "__cpp_lib_formatters should be defined in c++23" 5100 # endif 5101 # if __cpp_lib_formatters != 202302L 5102 # error "__cpp_lib_formatters should have the value 202302L in c++23" 5103 # endif 5104 # else // _LIBCPP_VERSION 5105 # ifdef __cpp_lib_formatters 5106 # error "__cpp_lib_formatters should not be defined because it is unimplemented in libc++!" 5107 # endif 5108 # endif 5109 5110 # ifndef __cpp_lib_forward_like 5111 # error "__cpp_lib_forward_like should be defined in c++23" 5112 # endif 5113 # if __cpp_lib_forward_like != 202207L 5114 # error "__cpp_lib_forward_like should have the value 202207L in c++23" 5115 # endif 5116 5117 # ifdef __cpp_lib_freestanding_algorithm 5118 # error "__cpp_lib_freestanding_algorithm should not be defined before c++26" 5119 # endif 5120 5121 # ifdef __cpp_lib_freestanding_array 5122 # error "__cpp_lib_freestanding_array should not be defined before c++26" 5123 # endif 5124 5125 # ifdef __cpp_lib_freestanding_cstring 5126 # error "__cpp_lib_freestanding_cstring should not be defined before c++26" 5127 # endif 5128 5129 # ifdef __cpp_lib_freestanding_expected 5130 # error "__cpp_lib_freestanding_expected should not be defined before c++26" 5131 # endif 5132 5133 # ifdef __cpp_lib_freestanding_mdspan 5134 # error "__cpp_lib_freestanding_mdspan should not be defined before c++26" 5135 # endif 5136 5137 # ifdef __cpp_lib_freestanding_optional 5138 # error "__cpp_lib_freestanding_optional should not be defined before c++26" 5139 # endif 5140 5141 # ifdef __cpp_lib_freestanding_string_view 5142 # error "__cpp_lib_freestanding_string_view should not be defined before c++26" 5143 # endif 5144 5145 # ifdef __cpp_lib_freestanding_variant 5146 # error "__cpp_lib_freestanding_variant should not be defined before c++26" 5147 # endif 5148 5149 # ifdef __cpp_lib_fstream_native_handle 5150 # error "__cpp_lib_fstream_native_handle should not be defined before c++26" 5151 # endif 5152 5153 # ifdef __cpp_lib_function_ref 5154 # error "__cpp_lib_function_ref should not be defined before c++26" 5155 # endif 5156 5157 # ifndef __cpp_lib_gcd_lcm 5158 # error "__cpp_lib_gcd_lcm should be defined in c++23" 5159 # endif 5160 # if __cpp_lib_gcd_lcm != 201606L 5161 # error "__cpp_lib_gcd_lcm should have the value 201606L in c++23" 5162 # endif 5163 5164 # ifdef __cpp_lib_generate_random 5165 # error "__cpp_lib_generate_random should not be defined before c++26" 5166 # endif 5167 5168 # ifndef __cpp_lib_generic_associative_lookup 5169 # error "__cpp_lib_generic_associative_lookup should be defined in c++23" 5170 # endif 5171 # if __cpp_lib_generic_associative_lookup != 201304L 5172 # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++23" 5173 # endif 5174 5175 # ifndef __cpp_lib_generic_unordered_lookup 5176 # error "__cpp_lib_generic_unordered_lookup should be defined in c++23" 5177 # endif 5178 # if __cpp_lib_generic_unordered_lookup != 201811L 5179 # error "__cpp_lib_generic_unordered_lookup should have the value 201811L in c++23" 5180 # endif 5181 5182 # if !defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE)) 5183 # ifndef __cpp_lib_hardware_interference_size 5184 # error "__cpp_lib_hardware_interference_size should be defined in c++23" 5185 # endif 5186 # if __cpp_lib_hardware_interference_size != 201703L 5187 # error "__cpp_lib_hardware_interference_size should have the value 201703L in c++23" 5188 # endif 5189 # else 5190 # ifdef __cpp_lib_hardware_interference_size 5191 # error "__cpp_lib_hardware_interference_size should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE))' is not met!" 5192 # endif 5193 # endif 5194 5195 # ifndef __cpp_lib_has_unique_object_representations 5196 # error "__cpp_lib_has_unique_object_representations should be defined in c++23" 5197 # endif 5198 # if __cpp_lib_has_unique_object_representations != 201606L 5199 # error "__cpp_lib_has_unique_object_representations should have the value 201606L in c++23" 5200 # endif 5201 5202 # ifdef __cpp_lib_hazard_pointer 5203 # error "__cpp_lib_hazard_pointer should not be defined before c++26" 5204 # endif 5205 5206 # ifndef __cpp_lib_hypot 5207 # error "__cpp_lib_hypot should be defined in c++23" 5208 # endif 5209 # if __cpp_lib_hypot != 201603L 5210 # error "__cpp_lib_hypot should have the value 201603L in c++23" 5211 # endif 5212 5213 # ifndef __cpp_lib_incomplete_container_elements 5214 # error "__cpp_lib_incomplete_container_elements should be defined in c++23" 5215 # endif 5216 # if __cpp_lib_incomplete_container_elements != 201505L 5217 # error "__cpp_lib_incomplete_container_elements should have the value 201505L in c++23" 5218 # endif 5219 5220 # ifdef __cpp_lib_inplace_vector 5221 # error "__cpp_lib_inplace_vector should not be defined before c++26" 5222 # endif 5223 5224 # ifndef __cpp_lib_int_pow2 5225 # error "__cpp_lib_int_pow2 should be defined in c++23" 5226 # endif 5227 # if __cpp_lib_int_pow2 != 202002L 5228 # error "__cpp_lib_int_pow2 should have the value 202002L in c++23" 5229 # endif 5230 5231 # ifndef __cpp_lib_integer_comparison_functions 5232 # error "__cpp_lib_integer_comparison_functions should be defined in c++23" 5233 # endif 5234 # if __cpp_lib_integer_comparison_functions != 202002L 5235 # error "__cpp_lib_integer_comparison_functions should have the value 202002L in c++23" 5236 # endif 5237 5238 # ifndef __cpp_lib_integer_sequence 5239 # error "__cpp_lib_integer_sequence should be defined in c++23" 5240 # endif 5241 # if __cpp_lib_integer_sequence != 201304L 5242 # error "__cpp_lib_integer_sequence should have the value 201304L in c++23" 5243 # endif 5244 5245 # ifndef __cpp_lib_integral_constant_callable 5246 # error "__cpp_lib_integral_constant_callable should be defined in c++23" 5247 # endif 5248 # if __cpp_lib_integral_constant_callable != 201304L 5249 # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++23" 5250 # endif 5251 5252 # ifndef __cpp_lib_interpolate 5253 # error "__cpp_lib_interpolate should be defined in c++23" 5254 # endif 5255 # if __cpp_lib_interpolate != 201902L 5256 # error "__cpp_lib_interpolate should have the value 201902L in c++23" 5257 # endif 5258 5259 # ifndef __cpp_lib_invoke 5260 # error "__cpp_lib_invoke should be defined in c++23" 5261 # endif 5262 # if __cpp_lib_invoke != 201411L 5263 # error "__cpp_lib_invoke should have the value 201411L in c++23" 5264 # endif 5265 5266 # ifndef __cpp_lib_invoke_r 5267 # error "__cpp_lib_invoke_r should be defined in c++23" 5268 # endif 5269 # if __cpp_lib_invoke_r != 202106L 5270 # error "__cpp_lib_invoke_r should have the value 202106L in c++23" 5271 # endif 5272 5273 # ifndef __cpp_lib_ios_noreplace 5274 # error "__cpp_lib_ios_noreplace should be defined in c++23" 5275 # endif 5276 # if __cpp_lib_ios_noreplace != 202207L 5277 # error "__cpp_lib_ios_noreplace should have the value 202207L in c++23" 5278 # endif 5279 5280 # ifndef __cpp_lib_is_aggregate 5281 # error "__cpp_lib_is_aggregate should be defined in c++23" 5282 # endif 5283 # if __cpp_lib_is_aggregate != 201703L 5284 # error "__cpp_lib_is_aggregate should have the value 201703L in c++23" 5285 # endif 5286 5287 # ifndef __cpp_lib_is_constant_evaluated 5288 # error "__cpp_lib_is_constant_evaluated should be defined in c++23" 5289 # endif 5290 # if __cpp_lib_is_constant_evaluated != 201811L 5291 # error "__cpp_lib_is_constant_evaluated should have the value 201811L in c++23" 5292 # endif 5293 5294 # ifndef __cpp_lib_is_final 5295 # error "__cpp_lib_is_final should be defined in c++23" 5296 # endif 5297 # if __cpp_lib_is_final != 201402L 5298 # error "__cpp_lib_is_final should have the value 201402L in c++23" 5299 # endif 5300 5301 # ifndef __cpp_lib_is_invocable 5302 # error "__cpp_lib_is_invocable should be defined in c++23" 5303 # endif 5304 # if __cpp_lib_is_invocable != 201703L 5305 # error "__cpp_lib_is_invocable should have the value 201703L in c++23" 5306 # endif 5307 5308 # if !defined(_LIBCPP_VERSION) 5309 # ifndef __cpp_lib_is_layout_compatible 5310 # error "__cpp_lib_is_layout_compatible should be defined in c++23" 5311 # endif 5312 # if __cpp_lib_is_layout_compatible != 201907L 5313 # error "__cpp_lib_is_layout_compatible should have the value 201907L in c++23" 5314 # endif 5315 # else // _LIBCPP_VERSION 5316 # ifdef __cpp_lib_is_layout_compatible 5317 # error "__cpp_lib_is_layout_compatible should not be defined because it is unimplemented in libc++!" 5318 # endif 5319 # endif 5320 5321 # ifndef __cpp_lib_is_nothrow_convertible 5322 # error "__cpp_lib_is_nothrow_convertible should be defined in c++23" 5323 # endif 5324 # if __cpp_lib_is_nothrow_convertible != 201806L 5325 # error "__cpp_lib_is_nothrow_convertible should have the value 201806L in c++23" 5326 # endif 5327 5328 # ifndef __cpp_lib_is_null_pointer 5329 # error "__cpp_lib_is_null_pointer should be defined in c++23" 5330 # endif 5331 # if __cpp_lib_is_null_pointer != 201309L 5332 # error "__cpp_lib_is_null_pointer should have the value 201309L in c++23" 5333 # endif 5334 5335 # if !defined(_LIBCPP_VERSION) 5336 # ifndef __cpp_lib_is_pointer_interconvertible 5337 # error "__cpp_lib_is_pointer_interconvertible should be defined in c++23" 5338 # endif 5339 # if __cpp_lib_is_pointer_interconvertible != 201907L 5340 # error "__cpp_lib_is_pointer_interconvertible should have the value 201907L in c++23" 5341 # endif 5342 # else // _LIBCPP_VERSION 5343 # ifdef __cpp_lib_is_pointer_interconvertible 5344 # error "__cpp_lib_is_pointer_interconvertible should not be defined because it is unimplemented in libc++!" 5345 # endif 5346 # endif 5347 5348 # ifndef __cpp_lib_is_scoped_enum 5349 # error "__cpp_lib_is_scoped_enum should be defined in c++23" 5350 # endif 5351 # if __cpp_lib_is_scoped_enum != 202011L 5352 # error "__cpp_lib_is_scoped_enum should have the value 202011L in c++23" 5353 # endif 5354 5355 # ifndef __cpp_lib_is_swappable 5356 # error "__cpp_lib_is_swappable should be defined in c++23" 5357 # endif 5358 # if __cpp_lib_is_swappable != 201603L 5359 # error "__cpp_lib_is_swappable should have the value 201603L in c++23" 5360 # endif 5361 5362 # ifdef __cpp_lib_is_virtual_base_of 5363 # error "__cpp_lib_is_virtual_base_of should not be defined before c++26" 5364 # endif 5365 5366 # ifdef __cpp_lib_is_within_lifetime 5367 # error "__cpp_lib_is_within_lifetime should not be defined before c++26" 5368 # endif 5369 5370 # if !defined(_LIBCPP_HAS_NO_THREADS) && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 5371 # ifndef __cpp_lib_jthread 5372 # error "__cpp_lib_jthread should be defined in c++23" 5373 # endif 5374 # if __cpp_lib_jthread != 201911L 5375 # error "__cpp_lib_jthread should have the value 201911L in c++23" 5376 # endif 5377 # else 5378 # ifdef __cpp_lib_jthread 5379 # error "__cpp_lib_jthread should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 5380 # endif 5381 # endif 5382 5383 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 5384 # ifndef __cpp_lib_latch 5385 # error "__cpp_lib_latch should be defined in c++23" 5386 # endif 5387 # if __cpp_lib_latch != 201907L 5388 # error "__cpp_lib_latch should have the value 201907L in c++23" 5389 # endif 5390 # else 5391 # ifdef __cpp_lib_latch 5392 # error "__cpp_lib_latch should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 5393 # endif 5394 # endif 5395 5396 # ifndef __cpp_lib_launder 5397 # error "__cpp_lib_launder should be defined in c++23" 5398 # endif 5399 # if __cpp_lib_launder != 201606L 5400 # error "__cpp_lib_launder should have the value 201606L in c++23" 5401 # endif 5402 5403 # ifdef __cpp_lib_linalg 5404 # error "__cpp_lib_linalg should not be defined before c++26" 5405 # endif 5406 5407 # ifndef __cpp_lib_list_remove_return_type 5408 # error "__cpp_lib_list_remove_return_type should be defined in c++23" 5409 # endif 5410 # if __cpp_lib_list_remove_return_type != 201806L 5411 # error "__cpp_lib_list_remove_return_type should have the value 201806L in c++23" 5412 # endif 5413 5414 # ifndef __cpp_lib_logical_traits 5415 # error "__cpp_lib_logical_traits should be defined in c++23" 5416 # endif 5417 # if __cpp_lib_logical_traits != 201510L 5418 # error "__cpp_lib_logical_traits should have the value 201510L in c++23" 5419 # endif 5420 5421 # ifndef __cpp_lib_make_from_tuple 5422 # error "__cpp_lib_make_from_tuple should be defined in c++23" 5423 # endif 5424 # if __cpp_lib_make_from_tuple != 201606L 5425 # error "__cpp_lib_make_from_tuple should have the value 201606L in c++23" 5426 # endif 5427 5428 # ifndef __cpp_lib_make_reverse_iterator 5429 # error "__cpp_lib_make_reverse_iterator should be defined in c++23" 5430 # endif 5431 # if __cpp_lib_make_reverse_iterator != 201402L 5432 # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++23" 5433 # endif 5434 5435 # ifndef __cpp_lib_make_unique 5436 # error "__cpp_lib_make_unique should be defined in c++23" 5437 # endif 5438 # if __cpp_lib_make_unique != 201304L 5439 # error "__cpp_lib_make_unique should have the value 201304L in c++23" 5440 # endif 5441 5442 # ifndef __cpp_lib_map_try_emplace 5443 # error "__cpp_lib_map_try_emplace should be defined in c++23" 5444 # endif 5445 # if __cpp_lib_map_try_emplace != 201411L 5446 # error "__cpp_lib_map_try_emplace should have the value 201411L in c++23" 5447 # endif 5448 5449 # ifndef __cpp_lib_math_constants 5450 # error "__cpp_lib_math_constants should be defined in c++23" 5451 # endif 5452 # if __cpp_lib_math_constants != 201907L 5453 # error "__cpp_lib_math_constants should have the value 201907L in c++23" 5454 # endif 5455 5456 # if !defined(_LIBCPP_VERSION) 5457 # ifndef __cpp_lib_math_special_functions 5458 # error "__cpp_lib_math_special_functions should be defined in c++23" 5459 # endif 5460 # if __cpp_lib_math_special_functions != 201603L 5461 # error "__cpp_lib_math_special_functions should have the value 201603L in c++23" 5462 # endif 5463 # else // _LIBCPP_VERSION 5464 # ifdef __cpp_lib_math_special_functions 5465 # error "__cpp_lib_math_special_functions should not be defined because it is unimplemented in libc++!" 5466 # endif 5467 # endif 5468 5469 # ifndef __cpp_lib_mdspan 5470 # error "__cpp_lib_mdspan should be defined in c++23" 5471 # endif 5472 # if __cpp_lib_mdspan != 202207L 5473 # error "__cpp_lib_mdspan should have the value 202207L in c++23" 5474 # endif 5475 5476 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR 5477 # ifndef __cpp_lib_memory_resource 5478 # error "__cpp_lib_memory_resource should be defined in c++23" 5479 # endif 5480 # if __cpp_lib_memory_resource != 201603L 5481 # error "__cpp_lib_memory_resource should have the value 201603L in c++23" 5482 # endif 5483 # else 5484 # ifdef __cpp_lib_memory_resource 5485 # error "__cpp_lib_memory_resource should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR' is not met!" 5486 # endif 5487 # endif 5488 5489 # ifndef __cpp_lib_modules 5490 # error "__cpp_lib_modules should be defined in c++23" 5491 # endif 5492 # if __cpp_lib_modules != 202207L 5493 # error "__cpp_lib_modules should have the value 202207L in c++23" 5494 # endif 5495 5496 # ifndef __cpp_lib_move_iterator_concept 5497 # error "__cpp_lib_move_iterator_concept should be defined in c++23" 5498 # endif 5499 # if __cpp_lib_move_iterator_concept != 202207L 5500 # error "__cpp_lib_move_iterator_concept should have the value 202207L in c++23" 5501 # endif 5502 5503 # if !defined(_LIBCPP_VERSION) 5504 # ifndef __cpp_lib_move_only_function 5505 # error "__cpp_lib_move_only_function should be defined in c++23" 5506 # endif 5507 # if __cpp_lib_move_only_function != 202110L 5508 # error "__cpp_lib_move_only_function should have the value 202110L in c++23" 5509 # endif 5510 # else // _LIBCPP_VERSION 5511 # ifdef __cpp_lib_move_only_function 5512 # error "__cpp_lib_move_only_function should not be defined because it is unimplemented in libc++!" 5513 # endif 5514 # endif 5515 5516 # ifndef __cpp_lib_node_extract 5517 # error "__cpp_lib_node_extract should be defined in c++23" 5518 # endif 5519 # if __cpp_lib_node_extract != 201606L 5520 # error "__cpp_lib_node_extract should have the value 201606L in c++23" 5521 # endif 5522 5523 # ifndef __cpp_lib_nonmember_container_access 5524 # error "__cpp_lib_nonmember_container_access should be defined in c++23" 5525 # endif 5526 # if __cpp_lib_nonmember_container_access != 201411L 5527 # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++23" 5528 # endif 5529 5530 # ifndef __cpp_lib_not_fn 5531 # error "__cpp_lib_not_fn should be defined in c++23" 5532 # endif 5533 # if __cpp_lib_not_fn != 201603L 5534 # error "__cpp_lib_not_fn should have the value 201603L in c++23" 5535 # endif 5536 5537 # ifndef __cpp_lib_null_iterators 5538 # error "__cpp_lib_null_iterators should be defined in c++23" 5539 # endif 5540 # if __cpp_lib_null_iterators != 201304L 5541 # error "__cpp_lib_null_iterators should have the value 201304L in c++23" 5542 # endif 5543 5544 # ifndef __cpp_lib_optional 5545 # error "__cpp_lib_optional should be defined in c++23" 5546 # endif 5547 # if __cpp_lib_optional != 202110L 5548 # error "__cpp_lib_optional should have the value 202110L in c++23" 5549 # endif 5550 5551 # ifdef __cpp_lib_optional_range_support 5552 # error "__cpp_lib_optional_range_support should not be defined before c++26" 5553 # endif 5554 5555 # if !defined(_LIBCPP_VERSION) 5556 # ifndef __cpp_lib_out_ptr 5557 # error "__cpp_lib_out_ptr should be defined in c++23" 5558 # endif 5559 # if __cpp_lib_out_ptr != 202106L 5560 # error "__cpp_lib_out_ptr should have the value 202106L in c++23" 5561 # endif 5562 # else // _LIBCPP_VERSION 5563 # ifdef __cpp_lib_out_ptr 5564 # error "__cpp_lib_out_ptr should not be defined because it is unimplemented in libc++!" 5565 # endif 5566 # endif 5567 5568 # if !defined(_LIBCPP_VERSION) 5569 # ifndef __cpp_lib_parallel_algorithm 5570 # error "__cpp_lib_parallel_algorithm should be defined in c++23" 5571 # endif 5572 # if __cpp_lib_parallel_algorithm != 201603L 5573 # error "__cpp_lib_parallel_algorithm should have the value 201603L in c++23" 5574 # endif 5575 # else // _LIBCPP_VERSION 5576 # ifdef __cpp_lib_parallel_algorithm 5577 # error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!" 5578 # endif 5579 # endif 5580 5581 # ifdef __cpp_lib_philox_engine 5582 # error "__cpp_lib_philox_engine should not be defined before c++26" 5583 # endif 5584 5585 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR 5586 # ifndef __cpp_lib_polymorphic_allocator 5587 # error "__cpp_lib_polymorphic_allocator should be defined in c++23" 5588 # endif 5589 # if __cpp_lib_polymorphic_allocator != 201902L 5590 # error "__cpp_lib_polymorphic_allocator should have the value 201902L in c++23" 5591 # endif 5592 # else 5593 # ifdef __cpp_lib_polymorphic_allocator 5594 # error "__cpp_lib_polymorphic_allocator should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR' is not met!" 5595 # endif 5596 # endif 5597 5598 # ifndef __cpp_lib_print 5599 # error "__cpp_lib_print should be defined in c++23" 5600 # endif 5601 # if __cpp_lib_print != 202207L 5602 # error "__cpp_lib_print should have the value 202207L in c++23" 5603 # endif 5604 5605 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION) 5606 # ifndef __cpp_lib_quoted_string_io 5607 # error "__cpp_lib_quoted_string_io should be defined in c++23" 5608 # endif 5609 # if __cpp_lib_quoted_string_io != 201304L 5610 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++23" 5611 # endif 5612 # else 5613 # ifdef __cpp_lib_quoted_string_io 5614 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!" 5615 # endif 5616 # endif 5617 5618 # ifndef __cpp_lib_ranges 5619 # error "__cpp_lib_ranges should be defined in c++23" 5620 # endif 5621 # if __cpp_lib_ranges != 202207L 5622 # error "__cpp_lib_ranges should have the value 202207L in c++23" 5623 # endif 5624 5625 # if !defined(_LIBCPP_VERSION) 5626 # ifndef __cpp_lib_ranges_as_const 5627 # error "__cpp_lib_ranges_as_const should be defined in c++23" 5628 # endif 5629 # if __cpp_lib_ranges_as_const != 202207L 5630 # error "__cpp_lib_ranges_as_const should have the value 202207L in c++23" 5631 # endif 5632 # else // _LIBCPP_VERSION 5633 # ifdef __cpp_lib_ranges_as_const 5634 # error "__cpp_lib_ranges_as_const should not be defined because it is unimplemented in libc++!" 5635 # endif 5636 # endif 5637 5638 # ifndef __cpp_lib_ranges_as_rvalue 5639 # error "__cpp_lib_ranges_as_rvalue should be defined in c++23" 5640 # endif 5641 # if __cpp_lib_ranges_as_rvalue != 202207L 5642 # error "__cpp_lib_ranges_as_rvalue should have the value 202207L in c++23" 5643 # endif 5644 5645 # if !defined(_LIBCPP_VERSION) 5646 # ifndef __cpp_lib_ranges_chunk 5647 # error "__cpp_lib_ranges_chunk should be defined in c++23" 5648 # endif 5649 # if __cpp_lib_ranges_chunk != 202202L 5650 # error "__cpp_lib_ranges_chunk should have the value 202202L in c++23" 5651 # endif 5652 # else // _LIBCPP_VERSION 5653 # ifdef __cpp_lib_ranges_chunk 5654 # error "__cpp_lib_ranges_chunk should not be defined because it is unimplemented in libc++!" 5655 # endif 5656 # endif 5657 5658 # ifndef __cpp_lib_ranges_chunk_by 5659 # error "__cpp_lib_ranges_chunk_by should be defined in c++23" 5660 # endif 5661 # if __cpp_lib_ranges_chunk_by != 202202L 5662 # error "__cpp_lib_ranges_chunk_by should have the value 202202L in c++23" 5663 # endif 5664 5665 # ifdef __cpp_lib_ranges_concat 5666 # error "__cpp_lib_ranges_concat should not be defined before c++26" 5667 # endif 5668 5669 # ifndef __cpp_lib_ranges_contains 5670 # error "__cpp_lib_ranges_contains should be defined in c++23" 5671 # endif 5672 # if __cpp_lib_ranges_contains != 202207L 5673 # error "__cpp_lib_ranges_contains should have the value 202207L in c++23" 5674 # endif 5675 5676 # if !defined(_LIBCPP_VERSION) 5677 # ifndef __cpp_lib_ranges_iota 5678 # error "__cpp_lib_ranges_iota should be defined in c++23" 5679 # endif 5680 # if __cpp_lib_ranges_iota != 202202L 5681 # error "__cpp_lib_ranges_iota should have the value 202202L in c++23" 5682 # endif 5683 # else // _LIBCPP_VERSION 5684 # ifdef __cpp_lib_ranges_iota 5685 # error "__cpp_lib_ranges_iota should not be defined because it is unimplemented in libc++!" 5686 # endif 5687 # endif 5688 5689 # if !defined(_LIBCPP_VERSION) 5690 # ifndef __cpp_lib_ranges_join_with 5691 # error "__cpp_lib_ranges_join_with should be defined in c++23" 5692 # endif 5693 # if __cpp_lib_ranges_join_with != 202202L 5694 # error "__cpp_lib_ranges_join_with should have the value 202202L in c++23" 5695 # endif 5696 # else // _LIBCPP_VERSION 5697 # ifdef __cpp_lib_ranges_join_with 5698 # error "__cpp_lib_ranges_join_with should not be defined because it is unimplemented in libc++!" 5699 # endif 5700 # endif 5701 5702 # ifndef __cpp_lib_ranges_repeat 5703 # error "__cpp_lib_ranges_repeat should be defined in c++23" 5704 # endif 5705 # if __cpp_lib_ranges_repeat != 202207L 5706 # error "__cpp_lib_ranges_repeat should have the value 202207L in c++23" 5707 # endif 5708 5709 # if !defined(_LIBCPP_VERSION) 5710 # ifndef __cpp_lib_ranges_slide 5711 # error "__cpp_lib_ranges_slide should be defined in c++23" 5712 # endif 5713 # if __cpp_lib_ranges_slide != 202202L 5714 # error "__cpp_lib_ranges_slide should have the value 202202L in c++23" 5715 # endif 5716 # else // _LIBCPP_VERSION 5717 # ifdef __cpp_lib_ranges_slide 5718 # error "__cpp_lib_ranges_slide should not be defined because it is unimplemented in libc++!" 5719 # endif 5720 # endif 5721 5722 # ifndef __cpp_lib_ranges_starts_ends_with 5723 # error "__cpp_lib_ranges_starts_ends_with should be defined in c++23" 5724 # endif 5725 # if __cpp_lib_ranges_starts_ends_with != 202106L 5726 # error "__cpp_lib_ranges_starts_ends_with should have the value 202106L in c++23" 5727 # endif 5728 5729 # ifndef __cpp_lib_ranges_to_container 5730 # error "__cpp_lib_ranges_to_container should be defined in c++23" 5731 # endif 5732 # if __cpp_lib_ranges_to_container != 202202L 5733 # error "__cpp_lib_ranges_to_container should have the value 202202L in c++23" 5734 # endif 5735 5736 # if !defined(_LIBCPP_VERSION) 5737 # ifndef __cpp_lib_ranges_zip 5738 # error "__cpp_lib_ranges_zip should be defined in c++23" 5739 # endif 5740 # if __cpp_lib_ranges_zip != 202110L 5741 # error "__cpp_lib_ranges_zip should have the value 202110L in c++23" 5742 # endif 5743 # else // _LIBCPP_VERSION 5744 # ifdef __cpp_lib_ranges_zip 5745 # error "__cpp_lib_ranges_zip should not be defined because it is unimplemented in libc++!" 5746 # endif 5747 # endif 5748 5749 # ifdef __cpp_lib_ratio 5750 # error "__cpp_lib_ratio should not be defined before c++26" 5751 # endif 5752 5753 # ifndef __cpp_lib_raw_memory_algorithms 5754 # error "__cpp_lib_raw_memory_algorithms should be defined in c++23" 5755 # endif 5756 # if __cpp_lib_raw_memory_algorithms != 201606L 5757 # error "__cpp_lib_raw_memory_algorithms should have the value 201606L in c++23" 5758 # endif 5759 5760 # ifdef __cpp_lib_rcu 5761 # error "__cpp_lib_rcu should not be defined before c++26" 5762 # endif 5763 5764 # if !defined(_LIBCPP_VERSION) 5765 # ifndef __cpp_lib_reference_from_temporary 5766 # error "__cpp_lib_reference_from_temporary should be defined in c++23" 5767 # endif 5768 # if __cpp_lib_reference_from_temporary != 202202L 5769 # error "__cpp_lib_reference_from_temporary should have the value 202202L in c++23" 5770 # endif 5771 # else // _LIBCPP_VERSION 5772 # ifdef __cpp_lib_reference_from_temporary 5773 # error "__cpp_lib_reference_from_temporary should not be defined because it is unimplemented in libc++!" 5774 # endif 5775 # endif 5776 5777 # ifdef __cpp_lib_reference_wrapper 5778 # error "__cpp_lib_reference_wrapper should not be defined before c++26" 5779 # endif 5780 5781 # ifndef __cpp_lib_remove_cvref 5782 # error "__cpp_lib_remove_cvref should be defined in c++23" 5783 # endif 5784 # if __cpp_lib_remove_cvref != 201711L 5785 # error "__cpp_lib_remove_cvref should have the value 201711L in c++23" 5786 # endif 5787 5788 # ifndef __cpp_lib_result_of_sfinae 5789 # error "__cpp_lib_result_of_sfinae should be defined in c++23" 5790 # endif 5791 # if __cpp_lib_result_of_sfinae != 201210L 5792 # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++23" 5793 # endif 5794 5795 # ifndef __cpp_lib_robust_nonmodifying_seq_ops 5796 # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++23" 5797 # endif 5798 # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L 5799 # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++23" 5800 # endif 5801 5802 # ifndef __cpp_lib_sample 5803 # error "__cpp_lib_sample should be defined in c++23" 5804 # endif 5805 # if __cpp_lib_sample != 201603L 5806 # error "__cpp_lib_sample should have the value 201603L in c++23" 5807 # endif 5808 5809 # ifdef __cpp_lib_saturation_arithmetic 5810 # error "__cpp_lib_saturation_arithmetic should not be defined before c++26" 5811 # endif 5812 5813 # if !defined(_LIBCPP_HAS_NO_THREADS) 5814 # ifndef __cpp_lib_scoped_lock 5815 # error "__cpp_lib_scoped_lock should be defined in c++23" 5816 # endif 5817 # if __cpp_lib_scoped_lock != 201703L 5818 # error "__cpp_lib_scoped_lock should have the value 201703L in c++23" 5819 # endif 5820 # else 5821 # ifdef __cpp_lib_scoped_lock 5822 # error "__cpp_lib_scoped_lock should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 5823 # endif 5824 # endif 5825 5826 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 5827 # ifndef __cpp_lib_semaphore 5828 # error "__cpp_lib_semaphore should be defined in c++23" 5829 # endif 5830 # if __cpp_lib_semaphore != 201907L 5831 # error "__cpp_lib_semaphore should have the value 201907L in c++23" 5832 # endif 5833 # else 5834 # ifdef __cpp_lib_semaphore 5835 # error "__cpp_lib_semaphore should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 5836 # endif 5837 # endif 5838 5839 # ifdef __cpp_lib_senders 5840 # error "__cpp_lib_senders should not be defined before c++26" 5841 # endif 5842 5843 # if !defined(_LIBCPP_HAS_NO_THREADS) 5844 # ifndef __cpp_lib_shared_mutex 5845 # error "__cpp_lib_shared_mutex should be defined in c++23" 5846 # endif 5847 # if __cpp_lib_shared_mutex != 201505L 5848 # error "__cpp_lib_shared_mutex should have the value 201505L in c++23" 5849 # endif 5850 # else 5851 # ifdef __cpp_lib_shared_mutex 5852 # error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 5853 # endif 5854 # endif 5855 5856 # ifndef __cpp_lib_shared_ptr_arrays 5857 # error "__cpp_lib_shared_ptr_arrays should be defined in c++23" 5858 # endif 5859 # if __cpp_lib_shared_ptr_arrays != 201707L 5860 # error "__cpp_lib_shared_ptr_arrays should have the value 201707L in c++23" 5861 # endif 5862 5863 # ifndef __cpp_lib_shared_ptr_weak_type 5864 # error "__cpp_lib_shared_ptr_weak_type should be defined in c++23" 5865 # endif 5866 # if __cpp_lib_shared_ptr_weak_type != 201606L 5867 # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++23" 5868 # endif 5869 5870 # if !defined(_LIBCPP_HAS_NO_THREADS) 5871 # ifndef __cpp_lib_shared_timed_mutex 5872 # error "__cpp_lib_shared_timed_mutex should be defined in c++23" 5873 # endif 5874 # if __cpp_lib_shared_timed_mutex != 201402L 5875 # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++23" 5876 # endif 5877 # else 5878 # ifdef __cpp_lib_shared_timed_mutex 5879 # error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 5880 # endif 5881 # endif 5882 5883 # ifndef __cpp_lib_shift 5884 # error "__cpp_lib_shift should be defined in c++23" 5885 # endif 5886 # if __cpp_lib_shift != 201806L 5887 # error "__cpp_lib_shift should have the value 201806L in c++23" 5888 # endif 5889 5890 # if !defined(_LIBCPP_VERSION) 5891 # ifndef __cpp_lib_smart_ptr_for_overwrite 5892 # error "__cpp_lib_smart_ptr_for_overwrite should be defined in c++23" 5893 # endif 5894 # if __cpp_lib_smart_ptr_for_overwrite != 202002L 5895 # error "__cpp_lib_smart_ptr_for_overwrite should have the value 202002L in c++23" 5896 # endif 5897 # else // _LIBCPP_VERSION 5898 # ifdef __cpp_lib_smart_ptr_for_overwrite 5899 # error "__cpp_lib_smart_ptr_for_overwrite should not be defined because it is unimplemented in libc++!" 5900 # endif 5901 # endif 5902 5903 # ifdef __cpp_lib_smart_ptr_owner_equality 5904 # error "__cpp_lib_smart_ptr_owner_equality should not be defined before c++26" 5905 # endif 5906 5907 # ifndef __cpp_lib_source_location 5908 # error "__cpp_lib_source_location should be defined in c++23" 5909 # endif 5910 # if __cpp_lib_source_location != 201907L 5911 # error "__cpp_lib_source_location should have the value 201907L in c++23" 5912 # endif 5913 5914 # ifndef __cpp_lib_span 5915 # error "__cpp_lib_span should be defined in c++23" 5916 # endif 5917 # if __cpp_lib_span != 202002L 5918 # error "__cpp_lib_span should have the value 202002L in c++23" 5919 # endif 5920 5921 # ifdef __cpp_lib_span_at 5922 # error "__cpp_lib_span_at should not be defined before c++26" 5923 # endif 5924 5925 # ifdef __cpp_lib_span_initializer_list 5926 # error "__cpp_lib_span_initializer_list should not be defined before c++26" 5927 # endif 5928 5929 # if !defined(_LIBCPP_VERSION) 5930 # ifndef __cpp_lib_spanstream 5931 # error "__cpp_lib_spanstream should be defined in c++23" 5932 # endif 5933 # if __cpp_lib_spanstream != 202106L 5934 # error "__cpp_lib_spanstream should have the value 202106L in c++23" 5935 # endif 5936 # else // _LIBCPP_VERSION 5937 # ifdef __cpp_lib_spanstream 5938 # error "__cpp_lib_spanstream should not be defined because it is unimplemented in libc++!" 5939 # endif 5940 # endif 5941 5942 # ifndef __cpp_lib_ssize 5943 # error "__cpp_lib_ssize should be defined in c++23" 5944 # endif 5945 # if __cpp_lib_ssize != 201902L 5946 # error "__cpp_lib_ssize should have the value 201902L in c++23" 5947 # endif 5948 5949 # ifdef __cpp_lib_sstream_from_string_view 5950 # error "__cpp_lib_sstream_from_string_view should not be defined before c++26" 5951 # endif 5952 5953 # if !defined(_LIBCPP_VERSION) 5954 # ifndef __cpp_lib_stacktrace 5955 # error "__cpp_lib_stacktrace should be defined in c++23" 5956 # endif 5957 # if __cpp_lib_stacktrace != 202011L 5958 # error "__cpp_lib_stacktrace should have the value 202011L in c++23" 5959 # endif 5960 # else // _LIBCPP_VERSION 5961 # ifdef __cpp_lib_stacktrace 5962 # error "__cpp_lib_stacktrace should not be defined because it is unimplemented in libc++!" 5963 # endif 5964 # endif 5965 5966 # ifndef __cpp_lib_starts_ends_with 5967 # error "__cpp_lib_starts_ends_with should be defined in c++23" 5968 # endif 5969 # if __cpp_lib_starts_ends_with != 201711L 5970 # error "__cpp_lib_starts_ends_with should have the value 201711L in c++23" 5971 # endif 5972 5973 # ifndef __cpp_lib_stdatomic_h 5974 # error "__cpp_lib_stdatomic_h should be defined in c++23" 5975 # endif 5976 # if __cpp_lib_stdatomic_h != 202011L 5977 # error "__cpp_lib_stdatomic_h should have the value 202011L in c++23" 5978 # endif 5979 5980 # ifndef __cpp_lib_string_contains 5981 # error "__cpp_lib_string_contains should be defined in c++23" 5982 # endif 5983 # if __cpp_lib_string_contains != 202011L 5984 # error "__cpp_lib_string_contains should have the value 202011L in c++23" 5985 # endif 5986 5987 # ifndef __cpp_lib_string_resize_and_overwrite 5988 # error "__cpp_lib_string_resize_and_overwrite should be defined in c++23" 5989 # endif 5990 # if __cpp_lib_string_resize_and_overwrite != 202110L 5991 # error "__cpp_lib_string_resize_and_overwrite should have the value 202110L in c++23" 5992 # endif 5993 5994 # ifndef __cpp_lib_string_udls 5995 # error "__cpp_lib_string_udls should be defined in c++23" 5996 # endif 5997 # if __cpp_lib_string_udls != 201304L 5998 # error "__cpp_lib_string_udls should have the value 201304L in c++23" 5999 # endif 6000 6001 # ifndef __cpp_lib_string_view 6002 # error "__cpp_lib_string_view should be defined in c++23" 6003 # endif 6004 # if __cpp_lib_string_view != 201803L 6005 # error "__cpp_lib_string_view should have the value 201803L in c++23" 6006 # endif 6007 6008 # ifdef __cpp_lib_submdspan 6009 # error "__cpp_lib_submdspan should not be defined before c++26" 6010 # endif 6011 6012 # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM) 6013 # ifndef __cpp_lib_syncbuf 6014 # error "__cpp_lib_syncbuf should be defined in c++23" 6015 # endif 6016 # if __cpp_lib_syncbuf != 201803L 6017 # error "__cpp_lib_syncbuf should have the value 201803L in c++23" 6018 # endif 6019 # else 6020 # ifdef __cpp_lib_syncbuf 6021 # error "__cpp_lib_syncbuf should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM)' is not met!" 6022 # endif 6023 # endif 6024 6025 # ifdef __cpp_lib_text_encoding 6026 # error "__cpp_lib_text_encoding should not be defined before c++26" 6027 # endif 6028 6029 # ifndef __cpp_lib_three_way_comparison 6030 # error "__cpp_lib_three_way_comparison should be defined in c++23" 6031 # endif 6032 # if __cpp_lib_three_way_comparison != 201711L 6033 # error "__cpp_lib_three_way_comparison should have the value 201711L in c++23" 6034 # endif 6035 6036 # ifndef __cpp_lib_to_address 6037 # error "__cpp_lib_to_address should be defined in c++23" 6038 # endif 6039 # if __cpp_lib_to_address != 201711L 6040 # error "__cpp_lib_to_address should have the value 201711L in c++23" 6041 # endif 6042 6043 # ifndef __cpp_lib_to_array 6044 # error "__cpp_lib_to_array should be defined in c++23" 6045 # endif 6046 # if __cpp_lib_to_array != 201907L 6047 # error "__cpp_lib_to_array should have the value 201907L in c++23" 6048 # endif 6049 6050 # if !defined(_LIBCPP_VERSION) 6051 # ifndef __cpp_lib_to_chars 6052 # error "__cpp_lib_to_chars should be defined in c++23" 6053 # endif 6054 # if __cpp_lib_to_chars != 201611L 6055 # error "__cpp_lib_to_chars should have the value 201611L in c++23" 6056 # endif 6057 # else // _LIBCPP_VERSION 6058 # ifdef __cpp_lib_to_chars 6059 # error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" 6060 # endif 6061 # endif 6062 6063 # ifdef __cpp_lib_to_string 6064 # error "__cpp_lib_to_string should not be defined before c++26" 6065 # endif 6066 6067 # ifndef __cpp_lib_to_underlying 6068 # error "__cpp_lib_to_underlying should be defined in c++23" 6069 # endif 6070 # if __cpp_lib_to_underlying != 202102L 6071 # error "__cpp_lib_to_underlying should have the value 202102L in c++23" 6072 # endif 6073 6074 # ifndef __cpp_lib_transformation_trait_aliases 6075 # error "__cpp_lib_transformation_trait_aliases should be defined in c++23" 6076 # endif 6077 # if __cpp_lib_transformation_trait_aliases != 201304L 6078 # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++23" 6079 # endif 6080 6081 # ifndef __cpp_lib_transparent_operators 6082 # error "__cpp_lib_transparent_operators should be defined in c++23" 6083 # endif 6084 # if __cpp_lib_transparent_operators != 201510L 6085 # error "__cpp_lib_transparent_operators should have the value 201510L in c++23" 6086 # endif 6087 6088 # ifndef __cpp_lib_tuple_element_t 6089 # error "__cpp_lib_tuple_element_t should be defined in c++23" 6090 # endif 6091 # if __cpp_lib_tuple_element_t != 201402L 6092 # error "__cpp_lib_tuple_element_t should have the value 201402L in c++23" 6093 # endif 6094 6095 # if !defined(_LIBCPP_VERSION) 6096 # ifndef __cpp_lib_tuple_like 6097 # error "__cpp_lib_tuple_like should be defined in c++23" 6098 # endif 6099 # if __cpp_lib_tuple_like != 202207L 6100 # error "__cpp_lib_tuple_like should have the value 202207L in c++23" 6101 # endif 6102 # else // _LIBCPP_VERSION 6103 # ifdef __cpp_lib_tuple_like 6104 # error "__cpp_lib_tuple_like should not be defined because it is unimplemented in libc++!" 6105 # endif 6106 # endif 6107 6108 # ifndef __cpp_lib_tuples_by_type 6109 # error "__cpp_lib_tuples_by_type should be defined in c++23" 6110 # endif 6111 # if __cpp_lib_tuples_by_type != 201304L 6112 # error "__cpp_lib_tuples_by_type should have the value 201304L in c++23" 6113 # endif 6114 6115 # ifndef __cpp_lib_type_identity 6116 # error "__cpp_lib_type_identity should be defined in c++23" 6117 # endif 6118 # if __cpp_lib_type_identity != 201806L 6119 # error "__cpp_lib_type_identity should have the value 201806L in c++23" 6120 # endif 6121 6122 # ifndef __cpp_lib_type_trait_variable_templates 6123 # error "__cpp_lib_type_trait_variable_templates should be defined in c++23" 6124 # endif 6125 # if __cpp_lib_type_trait_variable_templates != 201510L 6126 # error "__cpp_lib_type_trait_variable_templates should have the value 201510L in c++23" 6127 # endif 6128 6129 # ifndef __cpp_lib_uncaught_exceptions 6130 # error "__cpp_lib_uncaught_exceptions should be defined in c++23" 6131 # endif 6132 # if __cpp_lib_uncaught_exceptions != 201411L 6133 # error "__cpp_lib_uncaught_exceptions should have the value 201411L in c++23" 6134 # endif 6135 6136 # ifndef __cpp_lib_unordered_map_try_emplace 6137 # error "__cpp_lib_unordered_map_try_emplace should be defined in c++23" 6138 # endif 6139 # if __cpp_lib_unordered_map_try_emplace != 201411L 6140 # error "__cpp_lib_unordered_map_try_emplace should have the value 201411L in c++23" 6141 # endif 6142 6143 # ifndef __cpp_lib_unreachable 6144 # error "__cpp_lib_unreachable should be defined in c++23" 6145 # endif 6146 # if __cpp_lib_unreachable != 202202L 6147 # error "__cpp_lib_unreachable should have the value 202202L in c++23" 6148 # endif 6149 6150 # ifndef __cpp_lib_unwrap_ref 6151 # error "__cpp_lib_unwrap_ref should be defined in c++23" 6152 # endif 6153 # if __cpp_lib_unwrap_ref != 201811L 6154 # error "__cpp_lib_unwrap_ref should have the value 201811L in c++23" 6155 # endif 6156 6157 # ifndef __cpp_lib_variant 6158 # error "__cpp_lib_variant should be defined in c++23" 6159 # endif 6160 # if __cpp_lib_variant != 202102L 6161 # error "__cpp_lib_variant should have the value 202102L in c++23" 6162 # endif 6163 6164 # ifndef __cpp_lib_void_t 6165 # error "__cpp_lib_void_t should be defined in c++23" 6166 # endif 6167 # if __cpp_lib_void_t != 201411L 6168 # error "__cpp_lib_void_t should have the value 201411L in c++23" 6169 # endif 6170 6171 #elif TEST_STD_VER > 23 6172 6173 # ifndef __cpp_lib_adaptor_iterator_pair_constructor 6174 # error "__cpp_lib_adaptor_iterator_pair_constructor should be defined in c++26" 6175 # endif 6176 # if __cpp_lib_adaptor_iterator_pair_constructor != 202106L 6177 # error "__cpp_lib_adaptor_iterator_pair_constructor should have the value 202106L in c++26" 6178 # endif 6179 6180 # ifndef __cpp_lib_addressof_constexpr 6181 # error "__cpp_lib_addressof_constexpr should be defined in c++26" 6182 # endif 6183 # if __cpp_lib_addressof_constexpr != 201603L 6184 # error "__cpp_lib_addressof_constexpr should have the value 201603L in c++26" 6185 # endif 6186 6187 # ifndef __cpp_lib_allocate_at_least 6188 # error "__cpp_lib_allocate_at_least should be defined in c++26" 6189 # endif 6190 # if __cpp_lib_allocate_at_least != 202302L 6191 # error "__cpp_lib_allocate_at_least should have the value 202302L in c++26" 6192 # endif 6193 6194 # ifndef __cpp_lib_allocator_traits_is_always_equal 6195 # error "__cpp_lib_allocator_traits_is_always_equal should be defined in c++26" 6196 # endif 6197 # if __cpp_lib_allocator_traits_is_always_equal != 201411L 6198 # error "__cpp_lib_allocator_traits_is_always_equal should have the value 201411L in c++26" 6199 # endif 6200 6201 # ifndef __cpp_lib_any 6202 # error "__cpp_lib_any should be defined in c++26" 6203 # endif 6204 # if __cpp_lib_any != 201606L 6205 # error "__cpp_lib_any should have the value 201606L in c++26" 6206 # endif 6207 6208 # ifndef __cpp_lib_apply 6209 # error "__cpp_lib_apply should be defined in c++26" 6210 # endif 6211 # if __cpp_lib_apply != 201603L 6212 # error "__cpp_lib_apply should have the value 201603L in c++26" 6213 # endif 6214 6215 # ifndef __cpp_lib_array_constexpr 6216 # error "__cpp_lib_array_constexpr should be defined in c++26" 6217 # endif 6218 # if __cpp_lib_array_constexpr != 201811L 6219 # error "__cpp_lib_array_constexpr should have the value 201811L in c++26" 6220 # endif 6221 6222 # ifndef __cpp_lib_as_const 6223 # error "__cpp_lib_as_const should be defined in c++26" 6224 # endif 6225 # if __cpp_lib_as_const != 201510L 6226 # error "__cpp_lib_as_const should have the value 201510L in c++26" 6227 # endif 6228 6229 # if !defined(_LIBCPP_VERSION) 6230 # ifndef __cpp_lib_associative_heterogeneous_erasure 6231 # error "__cpp_lib_associative_heterogeneous_erasure should be defined in c++26" 6232 # endif 6233 # if __cpp_lib_associative_heterogeneous_erasure != 202110L 6234 # error "__cpp_lib_associative_heterogeneous_erasure should have the value 202110L in c++26" 6235 # endif 6236 # else // _LIBCPP_VERSION 6237 # ifdef __cpp_lib_associative_heterogeneous_erasure 6238 # error "__cpp_lib_associative_heterogeneous_erasure should not be defined because it is unimplemented in libc++!" 6239 # endif 6240 # endif 6241 6242 # if !defined(_LIBCPP_VERSION) 6243 # ifndef __cpp_lib_associative_heterogeneous_insertion 6244 # error "__cpp_lib_associative_heterogeneous_insertion should be defined in c++26" 6245 # endif 6246 # if __cpp_lib_associative_heterogeneous_insertion != 202306L 6247 # error "__cpp_lib_associative_heterogeneous_insertion should have the value 202306L in c++26" 6248 # endif 6249 # else // _LIBCPP_VERSION 6250 # ifdef __cpp_lib_associative_heterogeneous_insertion 6251 # error "__cpp_lib_associative_heterogeneous_insertion should not be defined because it is unimplemented in libc++!" 6252 # endif 6253 # endif 6254 6255 # ifndef __cpp_lib_assume_aligned 6256 # error "__cpp_lib_assume_aligned should be defined in c++26" 6257 # endif 6258 # if __cpp_lib_assume_aligned != 201811L 6259 # error "__cpp_lib_assume_aligned should have the value 201811L in c++26" 6260 # endif 6261 6262 # ifndef __cpp_lib_atomic_flag_test 6263 # error "__cpp_lib_atomic_flag_test should be defined in c++26" 6264 # endif 6265 # if __cpp_lib_atomic_flag_test != 201907L 6266 # error "__cpp_lib_atomic_flag_test should have the value 201907L in c++26" 6267 # endif 6268 6269 # if !defined(_LIBCPP_VERSION) 6270 # ifndef __cpp_lib_atomic_float 6271 # error "__cpp_lib_atomic_float should be defined in c++26" 6272 # endif 6273 # if __cpp_lib_atomic_float != 201711L 6274 # error "__cpp_lib_atomic_float should have the value 201711L in c++26" 6275 # endif 6276 # else // _LIBCPP_VERSION 6277 # ifdef __cpp_lib_atomic_float 6278 # error "__cpp_lib_atomic_float should not be defined because it is unimplemented in libc++!" 6279 # endif 6280 # endif 6281 6282 # ifndef __cpp_lib_atomic_is_always_lock_free 6283 # error "__cpp_lib_atomic_is_always_lock_free should be defined in c++26" 6284 # endif 6285 # if __cpp_lib_atomic_is_always_lock_free != 201603L 6286 # error "__cpp_lib_atomic_is_always_lock_free should have the value 201603L in c++26" 6287 # endif 6288 6289 # ifndef __cpp_lib_atomic_lock_free_type_aliases 6290 # error "__cpp_lib_atomic_lock_free_type_aliases should be defined in c++26" 6291 # endif 6292 # if __cpp_lib_atomic_lock_free_type_aliases != 201907L 6293 # error "__cpp_lib_atomic_lock_free_type_aliases should have the value 201907L in c++26" 6294 # endif 6295 6296 # if !defined(_LIBCPP_VERSION) 6297 # ifndef __cpp_lib_atomic_min_max 6298 # error "__cpp_lib_atomic_min_max should be defined in c++26" 6299 # endif 6300 # if __cpp_lib_atomic_min_max != 202403L 6301 # error "__cpp_lib_atomic_min_max should have the value 202403L in c++26" 6302 # endif 6303 # else // _LIBCPP_VERSION 6304 # ifdef __cpp_lib_atomic_min_max 6305 # error "__cpp_lib_atomic_min_max should not be defined because it is unimplemented in libc++!" 6306 # endif 6307 # endif 6308 6309 # ifndef __cpp_lib_atomic_ref 6310 # error "__cpp_lib_atomic_ref should be defined in c++26" 6311 # endif 6312 # if __cpp_lib_atomic_ref != 201806L 6313 # error "__cpp_lib_atomic_ref should have the value 201806L in c++26" 6314 # endif 6315 6316 # if !defined(_LIBCPP_VERSION) 6317 # ifndef __cpp_lib_atomic_shared_ptr 6318 # error "__cpp_lib_atomic_shared_ptr should be defined in c++26" 6319 # endif 6320 # if __cpp_lib_atomic_shared_ptr != 201711L 6321 # error "__cpp_lib_atomic_shared_ptr should have the value 201711L in c++26" 6322 # endif 6323 # else // _LIBCPP_VERSION 6324 # ifdef __cpp_lib_atomic_shared_ptr 6325 # error "__cpp_lib_atomic_shared_ptr should not be defined because it is unimplemented in libc++!" 6326 # endif 6327 # endif 6328 6329 # ifndef __cpp_lib_atomic_value_initialization 6330 # error "__cpp_lib_atomic_value_initialization should be defined in c++26" 6331 # endif 6332 # if __cpp_lib_atomic_value_initialization != 201911L 6333 # error "__cpp_lib_atomic_value_initialization should have the value 201911L in c++26" 6334 # endif 6335 6336 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC 6337 # ifndef __cpp_lib_atomic_wait 6338 # error "__cpp_lib_atomic_wait should be defined in c++26" 6339 # endif 6340 # if __cpp_lib_atomic_wait != 201907L 6341 # error "__cpp_lib_atomic_wait should have the value 201907L in c++26" 6342 # endif 6343 # else 6344 # ifdef __cpp_lib_atomic_wait 6345 # error "__cpp_lib_atomic_wait should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC' is not met!" 6346 # endif 6347 # endif 6348 6349 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 6350 # ifndef __cpp_lib_barrier 6351 # error "__cpp_lib_barrier should be defined in c++26" 6352 # endif 6353 # if __cpp_lib_barrier != 201907L 6354 # error "__cpp_lib_barrier should have the value 201907L in c++26" 6355 # endif 6356 # else 6357 # ifdef __cpp_lib_barrier 6358 # error "__cpp_lib_barrier should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 6359 # endif 6360 # endif 6361 6362 # ifndef __cpp_lib_bind_back 6363 # error "__cpp_lib_bind_back should be defined in c++26" 6364 # endif 6365 # if __cpp_lib_bind_back != 202202L 6366 # error "__cpp_lib_bind_back should have the value 202202L in c++26" 6367 # endif 6368 6369 # ifndef __cpp_lib_bind_front 6370 # error "__cpp_lib_bind_front should be defined in c++26" 6371 # endif 6372 # if __cpp_lib_bind_front != 202306L 6373 # error "__cpp_lib_bind_front should have the value 202306L in c++26" 6374 # endif 6375 6376 # ifndef __cpp_lib_bit_cast 6377 # error "__cpp_lib_bit_cast should be defined in c++26" 6378 # endif 6379 # if __cpp_lib_bit_cast != 201806L 6380 # error "__cpp_lib_bit_cast should have the value 201806L in c++26" 6381 # endif 6382 6383 # ifndef __cpp_lib_bitops 6384 # error "__cpp_lib_bitops should be defined in c++26" 6385 # endif 6386 # if __cpp_lib_bitops != 201907L 6387 # error "__cpp_lib_bitops should have the value 201907L in c++26" 6388 # endif 6389 6390 # ifndef __cpp_lib_bitset 6391 # error "__cpp_lib_bitset should be defined in c++26" 6392 # endif 6393 # if __cpp_lib_bitset != 202306L 6394 # error "__cpp_lib_bitset should have the value 202306L in c++26" 6395 # endif 6396 6397 # ifndef __cpp_lib_bool_constant 6398 # error "__cpp_lib_bool_constant should be defined in c++26" 6399 # endif 6400 # if __cpp_lib_bool_constant != 201505L 6401 # error "__cpp_lib_bool_constant should have the value 201505L in c++26" 6402 # endif 6403 6404 # ifndef __cpp_lib_bounded_array_traits 6405 # error "__cpp_lib_bounded_array_traits should be defined in c++26" 6406 # endif 6407 # if __cpp_lib_bounded_array_traits != 201902L 6408 # error "__cpp_lib_bounded_array_traits should have the value 201902L in c++26" 6409 # endif 6410 6411 # ifndef __cpp_lib_boyer_moore_searcher 6412 # error "__cpp_lib_boyer_moore_searcher should be defined in c++26" 6413 # endif 6414 # if __cpp_lib_boyer_moore_searcher != 201603L 6415 # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++26" 6416 # endif 6417 6418 # ifndef __cpp_lib_byte 6419 # error "__cpp_lib_byte should be defined in c++26" 6420 # endif 6421 # if __cpp_lib_byte != 201603L 6422 # error "__cpp_lib_byte should have the value 201603L in c++26" 6423 # endif 6424 6425 # ifndef __cpp_lib_byteswap 6426 # error "__cpp_lib_byteswap should be defined in c++26" 6427 # endif 6428 # if __cpp_lib_byteswap != 202110L 6429 # error "__cpp_lib_byteswap should have the value 202110L in c++26" 6430 # endif 6431 6432 # if defined(__cpp_char8_t) 6433 # ifndef __cpp_lib_char8_t 6434 # error "__cpp_lib_char8_t should be defined in c++26" 6435 # endif 6436 # if __cpp_lib_char8_t != 201907L 6437 # error "__cpp_lib_char8_t should have the value 201907L in c++26" 6438 # endif 6439 # else 6440 # ifdef __cpp_lib_char8_t 6441 # error "__cpp_lib_char8_t should not be defined when the requirement 'defined(__cpp_char8_t)' is not met!" 6442 # endif 6443 # endif 6444 6445 # ifndef __cpp_lib_chrono 6446 # error "__cpp_lib_chrono should be defined in c++26" 6447 # endif 6448 # if __cpp_lib_chrono != 201611L 6449 # error "__cpp_lib_chrono should have the value 201611L in c++26" 6450 # endif 6451 6452 # ifndef __cpp_lib_chrono_udls 6453 # error "__cpp_lib_chrono_udls should be defined in c++26" 6454 # endif 6455 # if __cpp_lib_chrono_udls != 201304L 6456 # error "__cpp_lib_chrono_udls should have the value 201304L in c++26" 6457 # endif 6458 6459 # ifndef __cpp_lib_clamp 6460 # error "__cpp_lib_clamp should be defined in c++26" 6461 # endif 6462 # if __cpp_lib_clamp != 201603L 6463 # error "__cpp_lib_clamp should have the value 201603L in c++26" 6464 # endif 6465 6466 # ifndef __cpp_lib_complex_udls 6467 # error "__cpp_lib_complex_udls should be defined in c++26" 6468 # endif 6469 # if __cpp_lib_complex_udls != 201309L 6470 # error "__cpp_lib_complex_udls should have the value 201309L in c++26" 6471 # endif 6472 6473 # ifndef __cpp_lib_concepts 6474 # error "__cpp_lib_concepts should be defined in c++26" 6475 # endif 6476 # if __cpp_lib_concepts != 202002L 6477 # error "__cpp_lib_concepts should have the value 202002L in c++26" 6478 # endif 6479 6480 # ifndef __cpp_lib_constexpr_algorithms 6481 # error "__cpp_lib_constexpr_algorithms should be defined in c++26" 6482 # endif 6483 # if __cpp_lib_constexpr_algorithms != 201806L 6484 # error "__cpp_lib_constexpr_algorithms should have the value 201806L in c++26" 6485 # endif 6486 6487 # ifndef __cpp_lib_constexpr_bitset 6488 # error "__cpp_lib_constexpr_bitset should be defined in c++26" 6489 # endif 6490 # if __cpp_lib_constexpr_bitset != 202207L 6491 # error "__cpp_lib_constexpr_bitset should have the value 202207L in c++26" 6492 # endif 6493 6494 # ifndef __cpp_lib_constexpr_charconv 6495 # error "__cpp_lib_constexpr_charconv should be defined in c++26" 6496 # endif 6497 # if __cpp_lib_constexpr_charconv != 202207L 6498 # error "__cpp_lib_constexpr_charconv should have the value 202207L in c++26" 6499 # endif 6500 6501 # if !defined(_LIBCPP_VERSION) 6502 # ifndef __cpp_lib_constexpr_cmath 6503 # error "__cpp_lib_constexpr_cmath should be defined in c++26" 6504 # endif 6505 # if __cpp_lib_constexpr_cmath != 202202L 6506 # error "__cpp_lib_constexpr_cmath should have the value 202202L in c++26" 6507 # endif 6508 # else // _LIBCPP_VERSION 6509 # ifdef __cpp_lib_constexpr_cmath 6510 # error "__cpp_lib_constexpr_cmath should not be defined because it is unimplemented in libc++!" 6511 # endif 6512 # endif 6513 6514 # ifndef __cpp_lib_constexpr_complex 6515 # error "__cpp_lib_constexpr_complex should be defined in c++26" 6516 # endif 6517 # if __cpp_lib_constexpr_complex != 201711L 6518 # error "__cpp_lib_constexpr_complex should have the value 201711L in c++26" 6519 # endif 6520 6521 # ifndef __cpp_lib_constexpr_dynamic_alloc 6522 # error "__cpp_lib_constexpr_dynamic_alloc should be defined in c++26" 6523 # endif 6524 # if __cpp_lib_constexpr_dynamic_alloc != 201907L 6525 # error "__cpp_lib_constexpr_dynamic_alloc should have the value 201907L in c++26" 6526 # endif 6527 6528 # ifndef __cpp_lib_constexpr_functional 6529 # error "__cpp_lib_constexpr_functional should be defined in c++26" 6530 # endif 6531 # if __cpp_lib_constexpr_functional != 201907L 6532 # error "__cpp_lib_constexpr_functional should have the value 201907L in c++26" 6533 # endif 6534 6535 # ifndef __cpp_lib_constexpr_iterator 6536 # error "__cpp_lib_constexpr_iterator should be defined in c++26" 6537 # endif 6538 # if __cpp_lib_constexpr_iterator != 201811L 6539 # error "__cpp_lib_constexpr_iterator should have the value 201811L in c++26" 6540 # endif 6541 6542 # ifndef __cpp_lib_constexpr_memory 6543 # error "__cpp_lib_constexpr_memory should be defined in c++26" 6544 # endif 6545 # if __cpp_lib_constexpr_memory != 202202L 6546 # error "__cpp_lib_constexpr_memory should have the value 202202L in c++26" 6547 # endif 6548 6549 # if !defined(_LIBCPP_VERSION) 6550 # ifndef __cpp_lib_constexpr_new 6551 # error "__cpp_lib_constexpr_new should be defined in c++26" 6552 # endif 6553 # if __cpp_lib_constexpr_new != 202406L 6554 # error "__cpp_lib_constexpr_new should have the value 202406L in c++26" 6555 # endif 6556 # else // _LIBCPP_VERSION 6557 # ifdef __cpp_lib_constexpr_new 6558 # error "__cpp_lib_constexpr_new should not be defined because it is unimplemented in libc++!" 6559 # endif 6560 # endif 6561 6562 # ifndef __cpp_lib_constexpr_numeric 6563 # error "__cpp_lib_constexpr_numeric should be defined in c++26" 6564 # endif 6565 # if __cpp_lib_constexpr_numeric != 201911L 6566 # error "__cpp_lib_constexpr_numeric should have the value 201911L in c++26" 6567 # endif 6568 6569 # ifndef __cpp_lib_constexpr_string 6570 # error "__cpp_lib_constexpr_string should be defined in c++26" 6571 # endif 6572 # if __cpp_lib_constexpr_string != 201907L 6573 # error "__cpp_lib_constexpr_string should have the value 201907L in c++26" 6574 # endif 6575 6576 # ifndef __cpp_lib_constexpr_string_view 6577 # error "__cpp_lib_constexpr_string_view should be defined in c++26" 6578 # endif 6579 # if __cpp_lib_constexpr_string_view != 201811L 6580 # error "__cpp_lib_constexpr_string_view should have the value 201811L in c++26" 6581 # endif 6582 6583 # ifndef __cpp_lib_constexpr_tuple 6584 # error "__cpp_lib_constexpr_tuple should be defined in c++26" 6585 # endif 6586 # if __cpp_lib_constexpr_tuple != 201811L 6587 # error "__cpp_lib_constexpr_tuple should have the value 201811L in c++26" 6588 # endif 6589 6590 # ifndef __cpp_lib_constexpr_typeinfo 6591 # error "__cpp_lib_constexpr_typeinfo should be defined in c++26" 6592 # endif 6593 # if __cpp_lib_constexpr_typeinfo != 202106L 6594 # error "__cpp_lib_constexpr_typeinfo should have the value 202106L in c++26" 6595 # endif 6596 6597 # ifndef __cpp_lib_constexpr_utility 6598 # error "__cpp_lib_constexpr_utility should be defined in c++26" 6599 # endif 6600 # if __cpp_lib_constexpr_utility != 201811L 6601 # error "__cpp_lib_constexpr_utility should have the value 201811L in c++26" 6602 # endif 6603 6604 # ifndef __cpp_lib_constexpr_vector 6605 # error "__cpp_lib_constexpr_vector should be defined in c++26" 6606 # endif 6607 # if __cpp_lib_constexpr_vector != 201907L 6608 # error "__cpp_lib_constexpr_vector should have the value 201907L in c++26" 6609 # endif 6610 6611 # if !defined(_LIBCPP_VERSION) 6612 # ifndef __cpp_lib_constrained_equality 6613 # error "__cpp_lib_constrained_equality should be defined in c++26" 6614 # endif 6615 # if __cpp_lib_constrained_equality != 202403L 6616 # error "__cpp_lib_constrained_equality should have the value 202403L in c++26" 6617 # endif 6618 # else // _LIBCPP_VERSION 6619 # ifdef __cpp_lib_constrained_equality 6620 # error "__cpp_lib_constrained_equality should not be defined because it is unimplemented in libc++!" 6621 # endif 6622 # endif 6623 6624 # ifndef __cpp_lib_containers_ranges 6625 # error "__cpp_lib_containers_ranges should be defined in c++26" 6626 # endif 6627 # if __cpp_lib_containers_ranges != 202202L 6628 # error "__cpp_lib_containers_ranges should have the value 202202L in c++26" 6629 # endif 6630 6631 # if !defined(_LIBCPP_VERSION) 6632 # ifndef __cpp_lib_copyable_function 6633 # error "__cpp_lib_copyable_function should be defined in c++26" 6634 # endif 6635 # if __cpp_lib_copyable_function != 202306L 6636 # error "__cpp_lib_copyable_function should have the value 202306L in c++26" 6637 # endif 6638 # else // _LIBCPP_VERSION 6639 # ifdef __cpp_lib_copyable_function 6640 # error "__cpp_lib_copyable_function should not be defined because it is unimplemented in libc++!" 6641 # endif 6642 # endif 6643 6644 # ifndef __cpp_lib_coroutine 6645 # error "__cpp_lib_coroutine should be defined in c++26" 6646 # endif 6647 # if __cpp_lib_coroutine != 201902L 6648 # error "__cpp_lib_coroutine should have the value 201902L in c++26" 6649 # endif 6650 6651 # if !defined(_LIBCPP_VERSION) 6652 # ifndef __cpp_lib_debugging 6653 # error "__cpp_lib_debugging should be defined in c++26" 6654 # endif 6655 # if __cpp_lib_debugging != 202311L 6656 # error "__cpp_lib_debugging should have the value 202311L in c++26" 6657 # endif 6658 # else // _LIBCPP_VERSION 6659 # ifdef __cpp_lib_debugging 6660 # error "__cpp_lib_debugging should not be defined because it is unimplemented in libc++!" 6661 # endif 6662 # endif 6663 6664 # if !defined(_LIBCPP_VERSION) 6665 # ifndef __cpp_lib_default_template_type_for_algorithm_values 6666 # error "__cpp_lib_default_template_type_for_algorithm_values should be defined in c++26" 6667 # endif 6668 # if __cpp_lib_default_template_type_for_algorithm_values != 202403L 6669 # error "__cpp_lib_default_template_type_for_algorithm_values should have the value 202403L in c++26" 6670 # endif 6671 # else // _LIBCPP_VERSION 6672 # ifdef __cpp_lib_default_template_type_for_algorithm_values 6673 # error "__cpp_lib_default_template_type_for_algorithm_values should not be defined because it is unimplemented in libc++!" 6674 # endif 6675 # endif 6676 6677 # if TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L 6678 # ifndef __cpp_lib_destroying_delete 6679 # error "__cpp_lib_destroying_delete should be defined in c++26" 6680 # endif 6681 # if __cpp_lib_destroying_delete != 201806L 6682 # error "__cpp_lib_destroying_delete should have the value 201806L in c++26" 6683 # endif 6684 # else 6685 # ifdef __cpp_lib_destroying_delete 6686 # error "__cpp_lib_destroying_delete should not be defined when the requirement 'TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L' is not met!" 6687 # endif 6688 # endif 6689 6690 # ifndef __cpp_lib_enable_shared_from_this 6691 # error "__cpp_lib_enable_shared_from_this should be defined in c++26" 6692 # endif 6693 # if __cpp_lib_enable_shared_from_this != 201603L 6694 # error "__cpp_lib_enable_shared_from_this should have the value 201603L in c++26" 6695 # endif 6696 6697 # ifndef __cpp_lib_endian 6698 # error "__cpp_lib_endian should be defined in c++26" 6699 # endif 6700 # if __cpp_lib_endian != 201907L 6701 # error "__cpp_lib_endian should have the value 201907L in c++26" 6702 # endif 6703 6704 # ifndef __cpp_lib_erase_if 6705 # error "__cpp_lib_erase_if should be defined in c++26" 6706 # endif 6707 # if __cpp_lib_erase_if != 202002L 6708 # error "__cpp_lib_erase_if should have the value 202002L in c++26" 6709 # endif 6710 6711 # ifndef __cpp_lib_exchange_function 6712 # error "__cpp_lib_exchange_function should be defined in c++26" 6713 # endif 6714 # if __cpp_lib_exchange_function != 201304L 6715 # error "__cpp_lib_exchange_function should have the value 201304L in c++26" 6716 # endif 6717 6718 # if !defined(_LIBCPP_VERSION) 6719 # ifndef __cpp_lib_execution 6720 # error "__cpp_lib_execution should be defined in c++26" 6721 # endif 6722 # if __cpp_lib_execution != 201902L 6723 # error "__cpp_lib_execution should have the value 201902L in c++26" 6724 # endif 6725 # else // _LIBCPP_VERSION 6726 # ifdef __cpp_lib_execution 6727 # error "__cpp_lib_execution should not be defined because it is unimplemented in libc++!" 6728 # endif 6729 # endif 6730 6731 # ifndef __cpp_lib_expected 6732 # error "__cpp_lib_expected should be defined in c++26" 6733 # endif 6734 # if __cpp_lib_expected != 202211L 6735 # error "__cpp_lib_expected should have the value 202211L in c++26" 6736 # endif 6737 6738 # if !defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY) 6739 # ifndef __cpp_lib_filesystem 6740 # error "__cpp_lib_filesystem should be defined in c++26" 6741 # endif 6742 # if __cpp_lib_filesystem != 201703L 6743 # error "__cpp_lib_filesystem should have the value 201703L in c++26" 6744 # endif 6745 # else 6746 # ifdef __cpp_lib_filesystem 6747 # error "__cpp_lib_filesystem should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY)' is not met!" 6748 # endif 6749 # endif 6750 6751 # if !defined(_LIBCPP_VERSION) 6752 # ifndef __cpp_lib_format 6753 # error "__cpp_lib_format should be defined in c++26" 6754 # endif 6755 # if __cpp_lib_format != 202106L 6756 # error "__cpp_lib_format should have the value 202106L in c++26" 6757 # endif 6758 # else // _LIBCPP_VERSION 6759 # ifdef __cpp_lib_format 6760 # error "__cpp_lib_format should not be defined because it is unimplemented in libc++!" 6761 # endif 6762 # endif 6763 6764 # if !defined(_LIBCPP_VERSION) 6765 # ifndef __cpp_lib_format_path 6766 # error "__cpp_lib_format_path should be defined in c++26" 6767 # endif 6768 # if __cpp_lib_format_path != 202403L 6769 # error "__cpp_lib_format_path should have the value 202403L in c++26" 6770 # endif 6771 # else // _LIBCPP_VERSION 6772 # ifdef __cpp_lib_format_path 6773 # error "__cpp_lib_format_path should not be defined because it is unimplemented in libc++!" 6774 # endif 6775 # endif 6776 6777 # ifndef __cpp_lib_format_ranges 6778 # error "__cpp_lib_format_ranges should be defined in c++26" 6779 # endif 6780 # if __cpp_lib_format_ranges != 202207L 6781 # error "__cpp_lib_format_ranges should have the value 202207L in c++26" 6782 # endif 6783 6784 # ifndef __cpp_lib_format_uchar 6785 # error "__cpp_lib_format_uchar should be defined in c++26" 6786 # endif 6787 # if __cpp_lib_format_uchar != 202311L 6788 # error "__cpp_lib_format_uchar should have the value 202311L in c++26" 6789 # endif 6790 6791 # if !defined(_LIBCPP_VERSION) 6792 # ifndef __cpp_lib_formatters 6793 # error "__cpp_lib_formatters should be defined in c++26" 6794 # endif 6795 # if __cpp_lib_formatters != 202302L 6796 # error "__cpp_lib_formatters should have the value 202302L in c++26" 6797 # endif 6798 # else // _LIBCPP_VERSION 6799 # ifdef __cpp_lib_formatters 6800 # error "__cpp_lib_formatters should not be defined because it is unimplemented in libc++!" 6801 # endif 6802 # endif 6803 6804 # ifndef __cpp_lib_forward_like 6805 # error "__cpp_lib_forward_like should be defined in c++26" 6806 # endif 6807 # if __cpp_lib_forward_like != 202207L 6808 # error "__cpp_lib_forward_like should have the value 202207L in c++26" 6809 # endif 6810 6811 # if !defined(_LIBCPP_VERSION) 6812 # ifndef __cpp_lib_freestanding_algorithm 6813 # error "__cpp_lib_freestanding_algorithm should be defined in c++26" 6814 # endif 6815 # if __cpp_lib_freestanding_algorithm != 202311L 6816 # error "__cpp_lib_freestanding_algorithm should have the value 202311L in c++26" 6817 # endif 6818 # else // _LIBCPP_VERSION 6819 # ifdef __cpp_lib_freestanding_algorithm 6820 # error "__cpp_lib_freestanding_algorithm should not be defined because it is unimplemented in libc++!" 6821 # endif 6822 # endif 6823 6824 # if !defined(_LIBCPP_VERSION) 6825 # ifndef __cpp_lib_freestanding_array 6826 # error "__cpp_lib_freestanding_array should be defined in c++26" 6827 # endif 6828 # if __cpp_lib_freestanding_array != 202311L 6829 # error "__cpp_lib_freestanding_array should have the value 202311L in c++26" 6830 # endif 6831 # else // _LIBCPP_VERSION 6832 # ifdef __cpp_lib_freestanding_array 6833 # error "__cpp_lib_freestanding_array should not be defined because it is unimplemented in libc++!" 6834 # endif 6835 # endif 6836 6837 # if !defined(_LIBCPP_VERSION) 6838 # ifndef __cpp_lib_freestanding_cstring 6839 # error "__cpp_lib_freestanding_cstring should be defined in c++26" 6840 # endif 6841 # if __cpp_lib_freestanding_cstring != 202306L 6842 # error "__cpp_lib_freestanding_cstring should have the value 202306L in c++26" 6843 # endif 6844 # else // _LIBCPP_VERSION 6845 # ifdef __cpp_lib_freestanding_cstring 6846 # error "__cpp_lib_freestanding_cstring should not be defined because it is unimplemented in libc++!" 6847 # endif 6848 # endif 6849 6850 # if !defined(_LIBCPP_VERSION) 6851 # ifndef __cpp_lib_freestanding_expected 6852 # error "__cpp_lib_freestanding_expected should be defined in c++26" 6853 # endif 6854 # if __cpp_lib_freestanding_expected != 202311L 6855 # error "__cpp_lib_freestanding_expected should have the value 202311L in c++26" 6856 # endif 6857 # else // _LIBCPP_VERSION 6858 # ifdef __cpp_lib_freestanding_expected 6859 # error "__cpp_lib_freestanding_expected should not be defined because it is unimplemented in libc++!" 6860 # endif 6861 # endif 6862 6863 # if !defined(_LIBCPP_VERSION) 6864 # ifndef __cpp_lib_freestanding_mdspan 6865 # error "__cpp_lib_freestanding_mdspan should be defined in c++26" 6866 # endif 6867 # if __cpp_lib_freestanding_mdspan != 202311L 6868 # error "__cpp_lib_freestanding_mdspan should have the value 202311L in c++26" 6869 # endif 6870 # else // _LIBCPP_VERSION 6871 # ifdef __cpp_lib_freestanding_mdspan 6872 # error "__cpp_lib_freestanding_mdspan should not be defined because it is unimplemented in libc++!" 6873 # endif 6874 # endif 6875 6876 # if !defined(_LIBCPP_VERSION) 6877 # ifndef __cpp_lib_freestanding_optional 6878 # error "__cpp_lib_freestanding_optional should be defined in c++26" 6879 # endif 6880 # if __cpp_lib_freestanding_optional != 202311L 6881 # error "__cpp_lib_freestanding_optional should have the value 202311L in c++26" 6882 # endif 6883 # else // _LIBCPP_VERSION 6884 # ifdef __cpp_lib_freestanding_optional 6885 # error "__cpp_lib_freestanding_optional should not be defined because it is unimplemented in libc++!" 6886 # endif 6887 # endif 6888 6889 # if !defined(_LIBCPP_VERSION) 6890 # ifndef __cpp_lib_freestanding_string_view 6891 # error "__cpp_lib_freestanding_string_view should be defined in c++26" 6892 # endif 6893 # if __cpp_lib_freestanding_string_view != 202311L 6894 # error "__cpp_lib_freestanding_string_view should have the value 202311L in c++26" 6895 # endif 6896 # else // _LIBCPP_VERSION 6897 # ifdef __cpp_lib_freestanding_string_view 6898 # error "__cpp_lib_freestanding_string_view should not be defined because it is unimplemented in libc++!" 6899 # endif 6900 # endif 6901 6902 # if !defined(_LIBCPP_VERSION) 6903 # ifndef __cpp_lib_freestanding_variant 6904 # error "__cpp_lib_freestanding_variant should be defined in c++26" 6905 # endif 6906 # if __cpp_lib_freestanding_variant != 202311L 6907 # error "__cpp_lib_freestanding_variant should have the value 202311L in c++26" 6908 # endif 6909 # else // _LIBCPP_VERSION 6910 # ifdef __cpp_lib_freestanding_variant 6911 # error "__cpp_lib_freestanding_variant should not be defined because it is unimplemented in libc++!" 6912 # endif 6913 # endif 6914 6915 # if !defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && !defined(_LIBCPP_HAS_NO_LOCALIZATION)) 6916 # ifndef __cpp_lib_fstream_native_handle 6917 # error "__cpp_lib_fstream_native_handle should be defined in c++26" 6918 # endif 6919 # if __cpp_lib_fstream_native_handle != 202306L 6920 # error "__cpp_lib_fstream_native_handle should have the value 202306L in c++26" 6921 # endif 6922 # else 6923 # ifdef __cpp_lib_fstream_native_handle 6924 # error "__cpp_lib_fstream_native_handle should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (!defined(_LIBCPP_HAS_NO_FILESYSTEM) && !defined(_LIBCPP_HAS_NO_LOCALIZATION))' is not met!" 6925 # endif 6926 # endif 6927 6928 # if !defined(_LIBCPP_VERSION) 6929 # ifndef __cpp_lib_function_ref 6930 # error "__cpp_lib_function_ref should be defined in c++26" 6931 # endif 6932 # if __cpp_lib_function_ref != 202306L 6933 # error "__cpp_lib_function_ref should have the value 202306L in c++26" 6934 # endif 6935 # else // _LIBCPP_VERSION 6936 # ifdef __cpp_lib_function_ref 6937 # error "__cpp_lib_function_ref should not be defined because it is unimplemented in libc++!" 6938 # endif 6939 # endif 6940 6941 # ifndef __cpp_lib_gcd_lcm 6942 # error "__cpp_lib_gcd_lcm should be defined in c++26" 6943 # endif 6944 # if __cpp_lib_gcd_lcm != 201606L 6945 # error "__cpp_lib_gcd_lcm should have the value 201606L in c++26" 6946 # endif 6947 6948 # if !defined(_LIBCPP_VERSION) 6949 # ifndef __cpp_lib_generate_random 6950 # error "__cpp_lib_generate_random should be defined in c++26" 6951 # endif 6952 # if __cpp_lib_generate_random != 202403L 6953 # error "__cpp_lib_generate_random should have the value 202403L in c++26" 6954 # endif 6955 # else // _LIBCPP_VERSION 6956 # ifdef __cpp_lib_generate_random 6957 # error "__cpp_lib_generate_random should not be defined because it is unimplemented in libc++!" 6958 # endif 6959 # endif 6960 6961 # ifndef __cpp_lib_generic_associative_lookup 6962 # error "__cpp_lib_generic_associative_lookup should be defined in c++26" 6963 # endif 6964 # if __cpp_lib_generic_associative_lookup != 201304L 6965 # error "__cpp_lib_generic_associative_lookup should have the value 201304L in c++26" 6966 # endif 6967 6968 # ifndef __cpp_lib_generic_unordered_lookup 6969 # error "__cpp_lib_generic_unordered_lookup should be defined in c++26" 6970 # endif 6971 # if __cpp_lib_generic_unordered_lookup != 201811L 6972 # error "__cpp_lib_generic_unordered_lookup should have the value 201811L in c++26" 6973 # endif 6974 6975 # if !defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE)) 6976 # ifndef __cpp_lib_hardware_interference_size 6977 # error "__cpp_lib_hardware_interference_size should be defined in c++26" 6978 # endif 6979 # if __cpp_lib_hardware_interference_size != 201703L 6980 # error "__cpp_lib_hardware_interference_size should have the value 201703L in c++26" 6981 # endif 6982 # else 6983 # ifdef __cpp_lib_hardware_interference_size 6984 # error "__cpp_lib_hardware_interference_size should not be defined when the requirement '!defined(_LIBCPP_VERSION) || (defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE))' is not met!" 6985 # endif 6986 # endif 6987 6988 # ifndef __cpp_lib_has_unique_object_representations 6989 # error "__cpp_lib_has_unique_object_representations should be defined in c++26" 6990 # endif 6991 # if __cpp_lib_has_unique_object_representations != 201606L 6992 # error "__cpp_lib_has_unique_object_representations should have the value 201606L in c++26" 6993 # endif 6994 6995 # if !defined(_LIBCPP_VERSION) 6996 # ifndef __cpp_lib_hazard_pointer 6997 # error "__cpp_lib_hazard_pointer should be defined in c++26" 6998 # endif 6999 # if __cpp_lib_hazard_pointer != 202306L 7000 # error "__cpp_lib_hazard_pointer should have the value 202306L in c++26" 7001 # endif 7002 # else // _LIBCPP_VERSION 7003 # ifdef __cpp_lib_hazard_pointer 7004 # error "__cpp_lib_hazard_pointer should not be defined because it is unimplemented in libc++!" 7005 # endif 7006 # endif 7007 7008 # ifndef __cpp_lib_hypot 7009 # error "__cpp_lib_hypot should be defined in c++26" 7010 # endif 7011 # if __cpp_lib_hypot != 201603L 7012 # error "__cpp_lib_hypot should have the value 201603L in c++26" 7013 # endif 7014 7015 # ifndef __cpp_lib_incomplete_container_elements 7016 # error "__cpp_lib_incomplete_container_elements should be defined in c++26" 7017 # endif 7018 # if __cpp_lib_incomplete_container_elements != 201505L 7019 # error "__cpp_lib_incomplete_container_elements should have the value 201505L in c++26" 7020 # endif 7021 7022 # if !defined(_LIBCPP_VERSION) 7023 # ifndef __cpp_lib_inplace_vector 7024 # error "__cpp_lib_inplace_vector should be defined in c++26" 7025 # endif 7026 # if __cpp_lib_inplace_vector != 202406L 7027 # error "__cpp_lib_inplace_vector should have the value 202406L in c++26" 7028 # endif 7029 # else // _LIBCPP_VERSION 7030 # ifdef __cpp_lib_inplace_vector 7031 # error "__cpp_lib_inplace_vector should not be defined because it is unimplemented in libc++!" 7032 # endif 7033 # endif 7034 7035 # ifndef __cpp_lib_int_pow2 7036 # error "__cpp_lib_int_pow2 should be defined in c++26" 7037 # endif 7038 # if __cpp_lib_int_pow2 != 202002L 7039 # error "__cpp_lib_int_pow2 should have the value 202002L in c++26" 7040 # endif 7041 7042 # ifndef __cpp_lib_integer_comparison_functions 7043 # error "__cpp_lib_integer_comparison_functions should be defined in c++26" 7044 # endif 7045 # if __cpp_lib_integer_comparison_functions != 202002L 7046 # error "__cpp_lib_integer_comparison_functions should have the value 202002L in c++26" 7047 # endif 7048 7049 # ifndef __cpp_lib_integer_sequence 7050 # error "__cpp_lib_integer_sequence should be defined in c++26" 7051 # endif 7052 # if __cpp_lib_integer_sequence != 201304L 7053 # error "__cpp_lib_integer_sequence should have the value 201304L in c++26" 7054 # endif 7055 7056 # ifndef __cpp_lib_integral_constant_callable 7057 # error "__cpp_lib_integral_constant_callable should be defined in c++26" 7058 # endif 7059 # if __cpp_lib_integral_constant_callable != 201304L 7060 # error "__cpp_lib_integral_constant_callable should have the value 201304L in c++26" 7061 # endif 7062 7063 # ifndef __cpp_lib_interpolate 7064 # error "__cpp_lib_interpolate should be defined in c++26" 7065 # endif 7066 # if __cpp_lib_interpolate != 201902L 7067 # error "__cpp_lib_interpolate should have the value 201902L in c++26" 7068 # endif 7069 7070 # ifndef __cpp_lib_invoke 7071 # error "__cpp_lib_invoke should be defined in c++26" 7072 # endif 7073 # if __cpp_lib_invoke != 201411L 7074 # error "__cpp_lib_invoke should have the value 201411L in c++26" 7075 # endif 7076 7077 # ifndef __cpp_lib_invoke_r 7078 # error "__cpp_lib_invoke_r should be defined in c++26" 7079 # endif 7080 # if __cpp_lib_invoke_r != 202106L 7081 # error "__cpp_lib_invoke_r should have the value 202106L in c++26" 7082 # endif 7083 7084 # ifndef __cpp_lib_ios_noreplace 7085 # error "__cpp_lib_ios_noreplace should be defined in c++26" 7086 # endif 7087 # if __cpp_lib_ios_noreplace != 202207L 7088 # error "__cpp_lib_ios_noreplace should have the value 202207L in c++26" 7089 # endif 7090 7091 # ifndef __cpp_lib_is_aggregate 7092 # error "__cpp_lib_is_aggregate should be defined in c++26" 7093 # endif 7094 # if __cpp_lib_is_aggregate != 201703L 7095 # error "__cpp_lib_is_aggregate should have the value 201703L in c++26" 7096 # endif 7097 7098 # ifndef __cpp_lib_is_constant_evaluated 7099 # error "__cpp_lib_is_constant_evaluated should be defined in c++26" 7100 # endif 7101 # if __cpp_lib_is_constant_evaluated != 201811L 7102 # error "__cpp_lib_is_constant_evaluated should have the value 201811L in c++26" 7103 # endif 7104 7105 # ifndef __cpp_lib_is_final 7106 # error "__cpp_lib_is_final should be defined in c++26" 7107 # endif 7108 # if __cpp_lib_is_final != 201402L 7109 # error "__cpp_lib_is_final should have the value 201402L in c++26" 7110 # endif 7111 7112 # ifndef __cpp_lib_is_invocable 7113 # error "__cpp_lib_is_invocable should be defined in c++26" 7114 # endif 7115 # if __cpp_lib_is_invocable != 201703L 7116 # error "__cpp_lib_is_invocable should have the value 201703L in c++26" 7117 # endif 7118 7119 # if !defined(_LIBCPP_VERSION) 7120 # ifndef __cpp_lib_is_layout_compatible 7121 # error "__cpp_lib_is_layout_compatible should be defined in c++26" 7122 # endif 7123 # if __cpp_lib_is_layout_compatible != 201907L 7124 # error "__cpp_lib_is_layout_compatible should have the value 201907L in c++26" 7125 # endif 7126 # else // _LIBCPP_VERSION 7127 # ifdef __cpp_lib_is_layout_compatible 7128 # error "__cpp_lib_is_layout_compatible should not be defined because it is unimplemented in libc++!" 7129 # endif 7130 # endif 7131 7132 # ifndef __cpp_lib_is_nothrow_convertible 7133 # error "__cpp_lib_is_nothrow_convertible should be defined in c++26" 7134 # endif 7135 # if __cpp_lib_is_nothrow_convertible != 201806L 7136 # error "__cpp_lib_is_nothrow_convertible should have the value 201806L in c++26" 7137 # endif 7138 7139 # ifndef __cpp_lib_is_null_pointer 7140 # error "__cpp_lib_is_null_pointer should be defined in c++26" 7141 # endif 7142 # if __cpp_lib_is_null_pointer != 201309L 7143 # error "__cpp_lib_is_null_pointer should have the value 201309L in c++26" 7144 # endif 7145 7146 # if !defined(_LIBCPP_VERSION) 7147 # ifndef __cpp_lib_is_pointer_interconvertible 7148 # error "__cpp_lib_is_pointer_interconvertible should be defined in c++26" 7149 # endif 7150 # if __cpp_lib_is_pointer_interconvertible != 201907L 7151 # error "__cpp_lib_is_pointer_interconvertible should have the value 201907L in c++26" 7152 # endif 7153 # else // _LIBCPP_VERSION 7154 # ifdef __cpp_lib_is_pointer_interconvertible 7155 # error "__cpp_lib_is_pointer_interconvertible should not be defined because it is unimplemented in libc++!" 7156 # endif 7157 # endif 7158 7159 # ifndef __cpp_lib_is_scoped_enum 7160 # error "__cpp_lib_is_scoped_enum should be defined in c++26" 7161 # endif 7162 # if __cpp_lib_is_scoped_enum != 202011L 7163 # error "__cpp_lib_is_scoped_enum should have the value 202011L in c++26" 7164 # endif 7165 7166 # ifndef __cpp_lib_is_swappable 7167 # error "__cpp_lib_is_swappable should be defined in c++26" 7168 # endif 7169 # if __cpp_lib_is_swappable != 201603L 7170 # error "__cpp_lib_is_swappable should have the value 201603L in c++26" 7171 # endif 7172 7173 # if !defined(_LIBCPP_VERSION) 7174 # ifndef __cpp_lib_is_virtual_base_of 7175 # error "__cpp_lib_is_virtual_base_of should be defined in c++26" 7176 # endif 7177 # if __cpp_lib_is_virtual_base_of != 202406L 7178 # error "__cpp_lib_is_virtual_base_of should have the value 202406L in c++26" 7179 # endif 7180 # else // _LIBCPP_VERSION 7181 # ifdef __cpp_lib_is_virtual_base_of 7182 # error "__cpp_lib_is_virtual_base_of should not be defined because it is unimplemented in libc++!" 7183 # endif 7184 # endif 7185 7186 # if !defined(_LIBCPP_VERSION) 7187 # ifndef __cpp_lib_is_within_lifetime 7188 # error "__cpp_lib_is_within_lifetime should be defined in c++26" 7189 # endif 7190 # if __cpp_lib_is_within_lifetime != 202306L 7191 # error "__cpp_lib_is_within_lifetime should have the value 202306L in c++26" 7192 # endif 7193 # else // _LIBCPP_VERSION 7194 # ifdef __cpp_lib_is_within_lifetime 7195 # error "__cpp_lib_is_within_lifetime should not be defined because it is unimplemented in libc++!" 7196 # endif 7197 # endif 7198 7199 # if !defined(_LIBCPP_HAS_NO_THREADS) && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 7200 # ifndef __cpp_lib_jthread 7201 # error "__cpp_lib_jthread should be defined in c++26" 7202 # endif 7203 # if __cpp_lib_jthread != 201911L 7204 # error "__cpp_lib_jthread should have the value 201911L in c++26" 7205 # endif 7206 # else 7207 # ifdef __cpp_lib_jthread 7208 # error "__cpp_lib_jthread should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 7209 # endif 7210 # endif 7211 7212 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 7213 # ifndef __cpp_lib_latch 7214 # error "__cpp_lib_latch should be defined in c++26" 7215 # endif 7216 # if __cpp_lib_latch != 201907L 7217 # error "__cpp_lib_latch should have the value 201907L in c++26" 7218 # endif 7219 # else 7220 # ifdef __cpp_lib_latch 7221 # error "__cpp_lib_latch should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 7222 # endif 7223 # endif 7224 7225 # ifndef __cpp_lib_launder 7226 # error "__cpp_lib_launder should be defined in c++26" 7227 # endif 7228 # if __cpp_lib_launder != 201606L 7229 # error "__cpp_lib_launder should have the value 201606L in c++26" 7230 # endif 7231 7232 # if !defined(_LIBCPP_VERSION) 7233 # ifndef __cpp_lib_linalg 7234 # error "__cpp_lib_linalg should be defined in c++26" 7235 # endif 7236 # if __cpp_lib_linalg != 202311L 7237 # error "__cpp_lib_linalg should have the value 202311L in c++26" 7238 # endif 7239 # else // _LIBCPP_VERSION 7240 # ifdef __cpp_lib_linalg 7241 # error "__cpp_lib_linalg should not be defined because it is unimplemented in libc++!" 7242 # endif 7243 # endif 7244 7245 # ifndef __cpp_lib_list_remove_return_type 7246 # error "__cpp_lib_list_remove_return_type should be defined in c++26" 7247 # endif 7248 # if __cpp_lib_list_remove_return_type != 201806L 7249 # error "__cpp_lib_list_remove_return_type should have the value 201806L in c++26" 7250 # endif 7251 7252 # ifndef __cpp_lib_logical_traits 7253 # error "__cpp_lib_logical_traits should be defined in c++26" 7254 # endif 7255 # if __cpp_lib_logical_traits != 201510L 7256 # error "__cpp_lib_logical_traits should have the value 201510L in c++26" 7257 # endif 7258 7259 # ifndef __cpp_lib_make_from_tuple 7260 # error "__cpp_lib_make_from_tuple should be defined in c++26" 7261 # endif 7262 # if __cpp_lib_make_from_tuple != 201606L 7263 # error "__cpp_lib_make_from_tuple should have the value 201606L in c++26" 7264 # endif 7265 7266 # ifndef __cpp_lib_make_reverse_iterator 7267 # error "__cpp_lib_make_reverse_iterator should be defined in c++26" 7268 # endif 7269 # if __cpp_lib_make_reverse_iterator != 201402L 7270 # error "__cpp_lib_make_reverse_iterator should have the value 201402L in c++26" 7271 # endif 7272 7273 # ifndef __cpp_lib_make_unique 7274 # error "__cpp_lib_make_unique should be defined in c++26" 7275 # endif 7276 # if __cpp_lib_make_unique != 201304L 7277 # error "__cpp_lib_make_unique should have the value 201304L in c++26" 7278 # endif 7279 7280 # ifndef __cpp_lib_map_try_emplace 7281 # error "__cpp_lib_map_try_emplace should be defined in c++26" 7282 # endif 7283 # if __cpp_lib_map_try_emplace != 201411L 7284 # error "__cpp_lib_map_try_emplace should have the value 201411L in c++26" 7285 # endif 7286 7287 # ifndef __cpp_lib_math_constants 7288 # error "__cpp_lib_math_constants should be defined in c++26" 7289 # endif 7290 # if __cpp_lib_math_constants != 201907L 7291 # error "__cpp_lib_math_constants should have the value 201907L in c++26" 7292 # endif 7293 7294 # if !defined(_LIBCPP_VERSION) 7295 # ifndef __cpp_lib_math_special_functions 7296 # error "__cpp_lib_math_special_functions should be defined in c++26" 7297 # endif 7298 # if __cpp_lib_math_special_functions != 201603L 7299 # error "__cpp_lib_math_special_functions should have the value 201603L in c++26" 7300 # endif 7301 # else // _LIBCPP_VERSION 7302 # ifdef __cpp_lib_math_special_functions 7303 # error "__cpp_lib_math_special_functions should not be defined because it is unimplemented in libc++!" 7304 # endif 7305 # endif 7306 7307 # ifndef __cpp_lib_mdspan 7308 # error "__cpp_lib_mdspan should be defined in c++26" 7309 # endif 7310 # if __cpp_lib_mdspan != 202207L 7311 # error "__cpp_lib_mdspan should have the value 202207L in c++26" 7312 # endif 7313 7314 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR 7315 # ifndef __cpp_lib_memory_resource 7316 # error "__cpp_lib_memory_resource should be defined in c++26" 7317 # endif 7318 # if __cpp_lib_memory_resource != 201603L 7319 # error "__cpp_lib_memory_resource should have the value 201603L in c++26" 7320 # endif 7321 # else 7322 # ifdef __cpp_lib_memory_resource 7323 # error "__cpp_lib_memory_resource should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR' is not met!" 7324 # endif 7325 # endif 7326 7327 # ifndef __cpp_lib_modules 7328 # error "__cpp_lib_modules should be defined in c++26" 7329 # endif 7330 # if __cpp_lib_modules != 202207L 7331 # error "__cpp_lib_modules should have the value 202207L in c++26" 7332 # endif 7333 7334 # ifndef __cpp_lib_move_iterator_concept 7335 # error "__cpp_lib_move_iterator_concept should be defined in c++26" 7336 # endif 7337 # if __cpp_lib_move_iterator_concept != 202207L 7338 # error "__cpp_lib_move_iterator_concept should have the value 202207L in c++26" 7339 # endif 7340 7341 # if !defined(_LIBCPP_VERSION) 7342 # ifndef __cpp_lib_move_only_function 7343 # error "__cpp_lib_move_only_function should be defined in c++26" 7344 # endif 7345 # if __cpp_lib_move_only_function != 202110L 7346 # error "__cpp_lib_move_only_function should have the value 202110L in c++26" 7347 # endif 7348 # else // _LIBCPP_VERSION 7349 # ifdef __cpp_lib_move_only_function 7350 # error "__cpp_lib_move_only_function should not be defined because it is unimplemented in libc++!" 7351 # endif 7352 # endif 7353 7354 # ifndef __cpp_lib_node_extract 7355 # error "__cpp_lib_node_extract should be defined in c++26" 7356 # endif 7357 # if __cpp_lib_node_extract != 201606L 7358 # error "__cpp_lib_node_extract should have the value 201606L in c++26" 7359 # endif 7360 7361 # ifndef __cpp_lib_nonmember_container_access 7362 # error "__cpp_lib_nonmember_container_access should be defined in c++26" 7363 # endif 7364 # if __cpp_lib_nonmember_container_access != 201411L 7365 # error "__cpp_lib_nonmember_container_access should have the value 201411L in c++26" 7366 # endif 7367 7368 # ifndef __cpp_lib_not_fn 7369 # error "__cpp_lib_not_fn should be defined in c++26" 7370 # endif 7371 # if __cpp_lib_not_fn != 201603L 7372 # error "__cpp_lib_not_fn should have the value 201603L in c++26" 7373 # endif 7374 7375 # ifndef __cpp_lib_null_iterators 7376 # error "__cpp_lib_null_iterators should be defined in c++26" 7377 # endif 7378 # if __cpp_lib_null_iterators != 201304L 7379 # error "__cpp_lib_null_iterators should have the value 201304L in c++26" 7380 # endif 7381 7382 # ifndef __cpp_lib_optional 7383 # error "__cpp_lib_optional should be defined in c++26" 7384 # endif 7385 # if __cpp_lib_optional != 202110L 7386 # error "__cpp_lib_optional should have the value 202110L in c++26" 7387 # endif 7388 7389 # if !defined(_LIBCPP_VERSION) 7390 # ifndef __cpp_lib_optional_range_support 7391 # error "__cpp_lib_optional_range_support should be defined in c++26" 7392 # endif 7393 # if __cpp_lib_optional_range_support != 202406L 7394 # error "__cpp_lib_optional_range_support should have the value 202406L in c++26" 7395 # endif 7396 # else // _LIBCPP_VERSION 7397 # ifdef __cpp_lib_optional_range_support 7398 # error "__cpp_lib_optional_range_support should not be defined because it is unimplemented in libc++!" 7399 # endif 7400 # endif 7401 7402 # if !defined(_LIBCPP_VERSION) 7403 # ifndef __cpp_lib_out_ptr 7404 # error "__cpp_lib_out_ptr should be defined in c++26" 7405 # endif 7406 # if __cpp_lib_out_ptr != 202311L 7407 # error "__cpp_lib_out_ptr should have the value 202311L in c++26" 7408 # endif 7409 # else // _LIBCPP_VERSION 7410 # ifdef __cpp_lib_out_ptr 7411 # error "__cpp_lib_out_ptr should not be defined because it is unimplemented in libc++!" 7412 # endif 7413 # endif 7414 7415 # if !defined(_LIBCPP_VERSION) 7416 # ifndef __cpp_lib_parallel_algorithm 7417 # error "__cpp_lib_parallel_algorithm should be defined in c++26" 7418 # endif 7419 # if __cpp_lib_parallel_algorithm != 201603L 7420 # error "__cpp_lib_parallel_algorithm should have the value 201603L in c++26" 7421 # endif 7422 # else // _LIBCPP_VERSION 7423 # ifdef __cpp_lib_parallel_algorithm 7424 # error "__cpp_lib_parallel_algorithm should not be defined because it is unimplemented in libc++!" 7425 # endif 7426 # endif 7427 7428 # if !defined(_LIBCPP_VERSION) 7429 # ifndef __cpp_lib_philox_engine 7430 # error "__cpp_lib_philox_engine should be defined in c++26" 7431 # endif 7432 # if __cpp_lib_philox_engine != 202406L 7433 # error "__cpp_lib_philox_engine should have the value 202406L in c++26" 7434 # endif 7435 # else // _LIBCPP_VERSION 7436 # ifdef __cpp_lib_philox_engine 7437 # error "__cpp_lib_philox_engine should not be defined because it is unimplemented in libc++!" 7438 # endif 7439 # endif 7440 7441 # if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR 7442 # ifndef __cpp_lib_polymorphic_allocator 7443 # error "__cpp_lib_polymorphic_allocator should be defined in c++26" 7444 # endif 7445 # if __cpp_lib_polymorphic_allocator != 201902L 7446 # error "__cpp_lib_polymorphic_allocator should have the value 201902L in c++26" 7447 # endif 7448 # else 7449 # ifdef __cpp_lib_polymorphic_allocator 7450 # error "__cpp_lib_polymorphic_allocator should not be defined when the requirement '!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_PMR' is not met!" 7451 # endif 7452 # endif 7453 7454 # ifndef __cpp_lib_print 7455 # error "__cpp_lib_print should be defined in c++26" 7456 # endif 7457 # if __cpp_lib_print != 202207L 7458 # error "__cpp_lib_print should have the value 202207L in c++26" 7459 # endif 7460 7461 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION) 7462 # ifndef __cpp_lib_quoted_string_io 7463 # error "__cpp_lib_quoted_string_io should be defined in c++26" 7464 # endif 7465 # if __cpp_lib_quoted_string_io != 201304L 7466 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++26" 7467 # endif 7468 # else 7469 # ifdef __cpp_lib_quoted_string_io 7470 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!" 7471 # endif 7472 # endif 7473 7474 # ifndef __cpp_lib_ranges 7475 # error "__cpp_lib_ranges should be defined in c++26" 7476 # endif 7477 # if __cpp_lib_ranges != 202207L 7478 # error "__cpp_lib_ranges should have the value 202207L in c++26" 7479 # endif 7480 7481 # if !defined(_LIBCPP_VERSION) 7482 # ifndef __cpp_lib_ranges_as_const 7483 # error "__cpp_lib_ranges_as_const should be defined in c++26" 7484 # endif 7485 # if __cpp_lib_ranges_as_const != 202207L 7486 # error "__cpp_lib_ranges_as_const should have the value 202207L in c++26" 7487 # endif 7488 # else // _LIBCPP_VERSION 7489 # ifdef __cpp_lib_ranges_as_const 7490 # error "__cpp_lib_ranges_as_const should not be defined because it is unimplemented in libc++!" 7491 # endif 7492 # endif 7493 7494 # ifndef __cpp_lib_ranges_as_rvalue 7495 # error "__cpp_lib_ranges_as_rvalue should be defined in c++26" 7496 # endif 7497 # if __cpp_lib_ranges_as_rvalue != 202207L 7498 # error "__cpp_lib_ranges_as_rvalue should have the value 202207L in c++26" 7499 # endif 7500 7501 # if !defined(_LIBCPP_VERSION) 7502 # ifndef __cpp_lib_ranges_chunk 7503 # error "__cpp_lib_ranges_chunk should be defined in c++26" 7504 # endif 7505 # if __cpp_lib_ranges_chunk != 202202L 7506 # error "__cpp_lib_ranges_chunk should have the value 202202L in c++26" 7507 # endif 7508 # else // _LIBCPP_VERSION 7509 # ifdef __cpp_lib_ranges_chunk 7510 # error "__cpp_lib_ranges_chunk should not be defined because it is unimplemented in libc++!" 7511 # endif 7512 # endif 7513 7514 # ifndef __cpp_lib_ranges_chunk_by 7515 # error "__cpp_lib_ranges_chunk_by should be defined in c++26" 7516 # endif 7517 # if __cpp_lib_ranges_chunk_by != 202202L 7518 # error "__cpp_lib_ranges_chunk_by should have the value 202202L in c++26" 7519 # endif 7520 7521 # if !defined(_LIBCPP_VERSION) 7522 # ifndef __cpp_lib_ranges_concat 7523 # error "__cpp_lib_ranges_concat should be defined in c++26" 7524 # endif 7525 # if __cpp_lib_ranges_concat != 202403L 7526 # error "__cpp_lib_ranges_concat should have the value 202403L in c++26" 7527 # endif 7528 # else // _LIBCPP_VERSION 7529 # ifdef __cpp_lib_ranges_concat 7530 # error "__cpp_lib_ranges_concat should not be defined because it is unimplemented in libc++!" 7531 # endif 7532 # endif 7533 7534 # ifndef __cpp_lib_ranges_contains 7535 # error "__cpp_lib_ranges_contains should be defined in c++26" 7536 # endif 7537 # if __cpp_lib_ranges_contains != 202207L 7538 # error "__cpp_lib_ranges_contains should have the value 202207L in c++26" 7539 # endif 7540 7541 # if !defined(_LIBCPP_VERSION) 7542 # ifndef __cpp_lib_ranges_iota 7543 # error "__cpp_lib_ranges_iota should be defined in c++26" 7544 # endif 7545 # if __cpp_lib_ranges_iota != 202202L 7546 # error "__cpp_lib_ranges_iota should have the value 202202L in c++26" 7547 # endif 7548 # else // _LIBCPP_VERSION 7549 # ifdef __cpp_lib_ranges_iota 7550 # error "__cpp_lib_ranges_iota should not be defined because it is unimplemented in libc++!" 7551 # endif 7552 # endif 7553 7554 # if !defined(_LIBCPP_VERSION) 7555 # ifndef __cpp_lib_ranges_join_with 7556 # error "__cpp_lib_ranges_join_with should be defined in c++26" 7557 # endif 7558 # if __cpp_lib_ranges_join_with != 202202L 7559 # error "__cpp_lib_ranges_join_with should have the value 202202L in c++26" 7560 # endif 7561 # else // _LIBCPP_VERSION 7562 # ifdef __cpp_lib_ranges_join_with 7563 # error "__cpp_lib_ranges_join_with should not be defined because it is unimplemented in libc++!" 7564 # endif 7565 # endif 7566 7567 # ifndef __cpp_lib_ranges_repeat 7568 # error "__cpp_lib_ranges_repeat should be defined in c++26" 7569 # endif 7570 # if __cpp_lib_ranges_repeat != 202207L 7571 # error "__cpp_lib_ranges_repeat should have the value 202207L in c++26" 7572 # endif 7573 7574 # if !defined(_LIBCPP_VERSION) 7575 # ifndef __cpp_lib_ranges_slide 7576 # error "__cpp_lib_ranges_slide should be defined in c++26" 7577 # endif 7578 # if __cpp_lib_ranges_slide != 202202L 7579 # error "__cpp_lib_ranges_slide should have the value 202202L in c++26" 7580 # endif 7581 # else // _LIBCPP_VERSION 7582 # ifdef __cpp_lib_ranges_slide 7583 # error "__cpp_lib_ranges_slide should not be defined because it is unimplemented in libc++!" 7584 # endif 7585 # endif 7586 7587 # ifndef __cpp_lib_ranges_starts_ends_with 7588 # error "__cpp_lib_ranges_starts_ends_with should be defined in c++26" 7589 # endif 7590 # if __cpp_lib_ranges_starts_ends_with != 202106L 7591 # error "__cpp_lib_ranges_starts_ends_with should have the value 202106L in c++26" 7592 # endif 7593 7594 # ifndef __cpp_lib_ranges_to_container 7595 # error "__cpp_lib_ranges_to_container should be defined in c++26" 7596 # endif 7597 # if __cpp_lib_ranges_to_container != 202202L 7598 # error "__cpp_lib_ranges_to_container should have the value 202202L in c++26" 7599 # endif 7600 7601 # if !defined(_LIBCPP_VERSION) 7602 # ifndef __cpp_lib_ranges_zip 7603 # error "__cpp_lib_ranges_zip should be defined in c++26" 7604 # endif 7605 # if __cpp_lib_ranges_zip != 202110L 7606 # error "__cpp_lib_ranges_zip should have the value 202110L in c++26" 7607 # endif 7608 # else // _LIBCPP_VERSION 7609 # ifdef __cpp_lib_ranges_zip 7610 # error "__cpp_lib_ranges_zip should not be defined because it is unimplemented in libc++!" 7611 # endif 7612 # endif 7613 7614 # ifndef __cpp_lib_ratio 7615 # error "__cpp_lib_ratio should be defined in c++26" 7616 # endif 7617 # if __cpp_lib_ratio != 202306L 7618 # error "__cpp_lib_ratio should have the value 202306L in c++26" 7619 # endif 7620 7621 # ifndef __cpp_lib_raw_memory_algorithms 7622 # error "__cpp_lib_raw_memory_algorithms should be defined in c++26" 7623 # endif 7624 # if __cpp_lib_raw_memory_algorithms != 201606L 7625 # error "__cpp_lib_raw_memory_algorithms should have the value 201606L in c++26" 7626 # endif 7627 7628 # if !defined(_LIBCPP_VERSION) 7629 # ifndef __cpp_lib_rcu 7630 # error "__cpp_lib_rcu should be defined in c++26" 7631 # endif 7632 # if __cpp_lib_rcu != 202306L 7633 # error "__cpp_lib_rcu should have the value 202306L in c++26" 7634 # endif 7635 # else // _LIBCPP_VERSION 7636 # ifdef __cpp_lib_rcu 7637 # error "__cpp_lib_rcu should not be defined because it is unimplemented in libc++!" 7638 # endif 7639 # endif 7640 7641 # if !defined(_LIBCPP_VERSION) 7642 # ifndef __cpp_lib_reference_from_temporary 7643 # error "__cpp_lib_reference_from_temporary should be defined in c++26" 7644 # endif 7645 # if __cpp_lib_reference_from_temporary != 202202L 7646 # error "__cpp_lib_reference_from_temporary should have the value 202202L in c++26" 7647 # endif 7648 # else // _LIBCPP_VERSION 7649 # ifdef __cpp_lib_reference_from_temporary 7650 # error "__cpp_lib_reference_from_temporary should not be defined because it is unimplemented in libc++!" 7651 # endif 7652 # endif 7653 7654 # ifndef __cpp_lib_reference_wrapper 7655 # error "__cpp_lib_reference_wrapper should be defined in c++26" 7656 # endif 7657 # if __cpp_lib_reference_wrapper != 202403L 7658 # error "__cpp_lib_reference_wrapper should have the value 202403L in c++26" 7659 # endif 7660 7661 # ifndef __cpp_lib_remove_cvref 7662 # error "__cpp_lib_remove_cvref should be defined in c++26" 7663 # endif 7664 # if __cpp_lib_remove_cvref != 201711L 7665 # error "__cpp_lib_remove_cvref should have the value 201711L in c++26" 7666 # endif 7667 7668 # ifndef __cpp_lib_result_of_sfinae 7669 # error "__cpp_lib_result_of_sfinae should be defined in c++26" 7670 # endif 7671 # if __cpp_lib_result_of_sfinae != 201210L 7672 # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++26" 7673 # endif 7674 7675 # ifndef __cpp_lib_robust_nonmodifying_seq_ops 7676 # error "__cpp_lib_robust_nonmodifying_seq_ops should be defined in c++26" 7677 # endif 7678 # if __cpp_lib_robust_nonmodifying_seq_ops != 201304L 7679 # error "__cpp_lib_robust_nonmodifying_seq_ops should have the value 201304L in c++26" 7680 # endif 7681 7682 # ifndef __cpp_lib_sample 7683 # error "__cpp_lib_sample should be defined in c++26" 7684 # endif 7685 # if __cpp_lib_sample != 201603L 7686 # error "__cpp_lib_sample should have the value 201603L in c++26" 7687 # endif 7688 7689 # ifndef __cpp_lib_saturation_arithmetic 7690 # error "__cpp_lib_saturation_arithmetic should be defined in c++26" 7691 # endif 7692 # if __cpp_lib_saturation_arithmetic != 202311L 7693 # error "__cpp_lib_saturation_arithmetic should have the value 202311L in c++26" 7694 # endif 7695 7696 # if !defined(_LIBCPP_HAS_NO_THREADS) 7697 # ifndef __cpp_lib_scoped_lock 7698 # error "__cpp_lib_scoped_lock should be defined in c++26" 7699 # endif 7700 # if __cpp_lib_scoped_lock != 201703L 7701 # error "__cpp_lib_scoped_lock should have the value 201703L in c++26" 7702 # endif 7703 # else 7704 # ifdef __cpp_lib_scoped_lock 7705 # error "__cpp_lib_scoped_lock should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 7706 # endif 7707 # endif 7708 7709 # if !defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC) 7710 # ifndef __cpp_lib_semaphore 7711 # error "__cpp_lib_semaphore should be defined in c++26" 7712 # endif 7713 # if __cpp_lib_semaphore != 201907L 7714 # error "__cpp_lib_semaphore should have the value 201907L in c++26" 7715 # endif 7716 # else 7717 # ifdef __cpp_lib_semaphore 7718 # error "__cpp_lib_semaphore should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS) && (!defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_SYNC)' is not met!" 7719 # endif 7720 # endif 7721 7722 # if !defined(_LIBCPP_VERSION) 7723 # ifndef __cpp_lib_senders 7724 # error "__cpp_lib_senders should be defined in c++26" 7725 # endif 7726 # if __cpp_lib_senders != 202406L 7727 # error "__cpp_lib_senders should have the value 202406L in c++26" 7728 # endif 7729 # else // _LIBCPP_VERSION 7730 # ifdef __cpp_lib_senders 7731 # error "__cpp_lib_senders should not be defined because it is unimplemented in libc++!" 7732 # endif 7733 # endif 7734 7735 # if !defined(_LIBCPP_HAS_NO_THREADS) 7736 # ifndef __cpp_lib_shared_mutex 7737 # error "__cpp_lib_shared_mutex should be defined in c++26" 7738 # endif 7739 # if __cpp_lib_shared_mutex != 201505L 7740 # error "__cpp_lib_shared_mutex should have the value 201505L in c++26" 7741 # endif 7742 # else 7743 # ifdef __cpp_lib_shared_mutex 7744 # error "__cpp_lib_shared_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 7745 # endif 7746 # endif 7747 7748 # ifndef __cpp_lib_shared_ptr_arrays 7749 # error "__cpp_lib_shared_ptr_arrays should be defined in c++26" 7750 # endif 7751 # if __cpp_lib_shared_ptr_arrays != 201707L 7752 # error "__cpp_lib_shared_ptr_arrays should have the value 201707L in c++26" 7753 # endif 7754 7755 # ifndef __cpp_lib_shared_ptr_weak_type 7756 # error "__cpp_lib_shared_ptr_weak_type should be defined in c++26" 7757 # endif 7758 # if __cpp_lib_shared_ptr_weak_type != 201606L 7759 # error "__cpp_lib_shared_ptr_weak_type should have the value 201606L in c++26" 7760 # endif 7761 7762 # if !defined(_LIBCPP_HAS_NO_THREADS) 7763 # ifndef __cpp_lib_shared_timed_mutex 7764 # error "__cpp_lib_shared_timed_mutex should be defined in c++26" 7765 # endif 7766 # if __cpp_lib_shared_timed_mutex != 201402L 7767 # error "__cpp_lib_shared_timed_mutex should have the value 201402L in c++26" 7768 # endif 7769 # else 7770 # ifdef __cpp_lib_shared_timed_mutex 7771 # error "__cpp_lib_shared_timed_mutex should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_THREADS)' is not met!" 7772 # endif 7773 # endif 7774 7775 # ifndef __cpp_lib_shift 7776 # error "__cpp_lib_shift should be defined in c++26" 7777 # endif 7778 # if __cpp_lib_shift != 201806L 7779 # error "__cpp_lib_shift should have the value 201806L in c++26" 7780 # endif 7781 7782 # if !defined(_LIBCPP_VERSION) 7783 # ifndef __cpp_lib_smart_ptr_for_overwrite 7784 # error "__cpp_lib_smart_ptr_for_overwrite should be defined in c++26" 7785 # endif 7786 # if __cpp_lib_smart_ptr_for_overwrite != 202002L 7787 # error "__cpp_lib_smart_ptr_for_overwrite should have the value 202002L in c++26" 7788 # endif 7789 # else // _LIBCPP_VERSION 7790 # ifdef __cpp_lib_smart_ptr_for_overwrite 7791 # error "__cpp_lib_smart_ptr_for_overwrite should not be defined because it is unimplemented in libc++!" 7792 # endif 7793 # endif 7794 7795 # if !defined(_LIBCPP_VERSION) 7796 # ifndef __cpp_lib_smart_ptr_owner_equality 7797 # error "__cpp_lib_smart_ptr_owner_equality should be defined in c++26" 7798 # endif 7799 # if __cpp_lib_smart_ptr_owner_equality != 202306L 7800 # error "__cpp_lib_smart_ptr_owner_equality should have the value 202306L in c++26" 7801 # endif 7802 # else // _LIBCPP_VERSION 7803 # ifdef __cpp_lib_smart_ptr_owner_equality 7804 # error "__cpp_lib_smart_ptr_owner_equality should not be defined because it is unimplemented in libc++!" 7805 # endif 7806 # endif 7807 7808 # ifndef __cpp_lib_source_location 7809 # error "__cpp_lib_source_location should be defined in c++26" 7810 # endif 7811 # if __cpp_lib_source_location != 201907L 7812 # error "__cpp_lib_source_location should have the value 201907L in c++26" 7813 # endif 7814 7815 # ifndef __cpp_lib_span 7816 # error "__cpp_lib_span should be defined in c++26" 7817 # endif 7818 # if __cpp_lib_span != 202002L 7819 # error "__cpp_lib_span should have the value 202002L in c++26" 7820 # endif 7821 7822 # ifndef __cpp_lib_span_at 7823 # error "__cpp_lib_span_at should be defined in c++26" 7824 # endif 7825 # if __cpp_lib_span_at != 202311L 7826 # error "__cpp_lib_span_at should have the value 202311L in c++26" 7827 # endif 7828 7829 # ifndef __cpp_lib_span_initializer_list 7830 # error "__cpp_lib_span_initializer_list should be defined in c++26" 7831 # endif 7832 # if __cpp_lib_span_initializer_list != 202311L 7833 # error "__cpp_lib_span_initializer_list should have the value 202311L in c++26" 7834 # endif 7835 7836 # if !defined(_LIBCPP_VERSION) 7837 # ifndef __cpp_lib_spanstream 7838 # error "__cpp_lib_spanstream should be defined in c++26" 7839 # endif 7840 # if __cpp_lib_spanstream != 202106L 7841 # error "__cpp_lib_spanstream should have the value 202106L in c++26" 7842 # endif 7843 # else // _LIBCPP_VERSION 7844 # ifdef __cpp_lib_spanstream 7845 # error "__cpp_lib_spanstream should not be defined because it is unimplemented in libc++!" 7846 # endif 7847 # endif 7848 7849 # ifndef __cpp_lib_ssize 7850 # error "__cpp_lib_ssize should be defined in c++26" 7851 # endif 7852 # if __cpp_lib_ssize != 201902L 7853 # error "__cpp_lib_ssize should have the value 201902L in c++26" 7854 # endif 7855 7856 # ifndef __cpp_lib_sstream_from_string_view 7857 # error "__cpp_lib_sstream_from_string_view should be defined in c++26" 7858 # endif 7859 # if __cpp_lib_sstream_from_string_view != 202306L 7860 # error "__cpp_lib_sstream_from_string_view should have the value 202306L in c++26" 7861 # endif 7862 7863 # if !defined(_LIBCPP_VERSION) 7864 # ifndef __cpp_lib_stacktrace 7865 # error "__cpp_lib_stacktrace should be defined in c++26" 7866 # endif 7867 # if __cpp_lib_stacktrace != 202011L 7868 # error "__cpp_lib_stacktrace should have the value 202011L in c++26" 7869 # endif 7870 # else // _LIBCPP_VERSION 7871 # ifdef __cpp_lib_stacktrace 7872 # error "__cpp_lib_stacktrace should not be defined because it is unimplemented in libc++!" 7873 # endif 7874 # endif 7875 7876 # ifndef __cpp_lib_starts_ends_with 7877 # error "__cpp_lib_starts_ends_with should be defined in c++26" 7878 # endif 7879 # if __cpp_lib_starts_ends_with != 201711L 7880 # error "__cpp_lib_starts_ends_with should have the value 201711L in c++26" 7881 # endif 7882 7883 # ifndef __cpp_lib_stdatomic_h 7884 # error "__cpp_lib_stdatomic_h should be defined in c++26" 7885 # endif 7886 # if __cpp_lib_stdatomic_h != 202011L 7887 # error "__cpp_lib_stdatomic_h should have the value 202011L in c++26" 7888 # endif 7889 7890 # ifndef __cpp_lib_string_contains 7891 # error "__cpp_lib_string_contains should be defined in c++26" 7892 # endif 7893 # if __cpp_lib_string_contains != 202011L 7894 # error "__cpp_lib_string_contains should have the value 202011L in c++26" 7895 # endif 7896 7897 # ifndef __cpp_lib_string_resize_and_overwrite 7898 # error "__cpp_lib_string_resize_and_overwrite should be defined in c++26" 7899 # endif 7900 # if __cpp_lib_string_resize_and_overwrite != 202110L 7901 # error "__cpp_lib_string_resize_and_overwrite should have the value 202110L in c++26" 7902 # endif 7903 7904 # ifndef __cpp_lib_string_udls 7905 # error "__cpp_lib_string_udls should be defined in c++26" 7906 # endif 7907 # if __cpp_lib_string_udls != 201304L 7908 # error "__cpp_lib_string_udls should have the value 201304L in c++26" 7909 # endif 7910 7911 # ifndef __cpp_lib_string_view 7912 # error "__cpp_lib_string_view should be defined in c++26" 7913 # endif 7914 # if __cpp_lib_string_view != 201803L 7915 # error "__cpp_lib_string_view should have the value 201803L in c++26" 7916 # endif 7917 7918 # if !defined(_LIBCPP_VERSION) 7919 # ifndef __cpp_lib_submdspan 7920 # error "__cpp_lib_submdspan should be defined in c++26" 7921 # endif 7922 # if __cpp_lib_submdspan != 202306L 7923 # error "__cpp_lib_submdspan should have the value 202306L in c++26" 7924 # endif 7925 # else // _LIBCPP_VERSION 7926 # ifdef __cpp_lib_submdspan 7927 # error "__cpp_lib_submdspan should not be defined because it is unimplemented in libc++!" 7928 # endif 7929 # endif 7930 7931 # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM) 7932 # ifndef __cpp_lib_syncbuf 7933 # error "__cpp_lib_syncbuf should be defined in c++26" 7934 # endif 7935 # if __cpp_lib_syncbuf != 201803L 7936 # error "__cpp_lib_syncbuf should have the value 201803L in c++26" 7937 # endif 7938 # else 7939 # ifdef __cpp_lib_syncbuf 7940 # error "__cpp_lib_syncbuf should not be defined when the requirement '!defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM)' is not met!" 7941 # endif 7942 # endif 7943 7944 # if !defined(_LIBCPP_VERSION) 7945 # ifndef __cpp_lib_text_encoding 7946 # error "__cpp_lib_text_encoding should be defined in c++26" 7947 # endif 7948 # if __cpp_lib_text_encoding != 202306L 7949 # error "__cpp_lib_text_encoding should have the value 202306L in c++26" 7950 # endif 7951 # else // _LIBCPP_VERSION 7952 # ifdef __cpp_lib_text_encoding 7953 # error "__cpp_lib_text_encoding should not be defined because it is unimplemented in libc++!" 7954 # endif 7955 # endif 7956 7957 # ifndef __cpp_lib_three_way_comparison 7958 # error "__cpp_lib_three_way_comparison should be defined in c++26" 7959 # endif 7960 # if __cpp_lib_three_way_comparison != 201711L 7961 # error "__cpp_lib_three_way_comparison should have the value 201711L in c++26" 7962 # endif 7963 7964 # ifndef __cpp_lib_to_address 7965 # error "__cpp_lib_to_address should be defined in c++26" 7966 # endif 7967 # if __cpp_lib_to_address != 201711L 7968 # error "__cpp_lib_to_address should have the value 201711L in c++26" 7969 # endif 7970 7971 # ifndef __cpp_lib_to_array 7972 # error "__cpp_lib_to_array should be defined in c++26" 7973 # endif 7974 # if __cpp_lib_to_array != 201907L 7975 # error "__cpp_lib_to_array should have the value 201907L in c++26" 7976 # endif 7977 7978 # if !defined(_LIBCPP_VERSION) 7979 # ifndef __cpp_lib_to_chars 7980 # error "__cpp_lib_to_chars should be defined in c++26" 7981 # endif 7982 # if __cpp_lib_to_chars != 202306L 7983 # error "__cpp_lib_to_chars should have the value 202306L in c++26" 7984 # endif 7985 # else // _LIBCPP_VERSION 7986 # ifdef __cpp_lib_to_chars 7987 # error "__cpp_lib_to_chars should not be defined because it is unimplemented in libc++!" 7988 # endif 7989 # endif 7990 7991 # if !defined(_LIBCPP_VERSION) 7992 # ifndef __cpp_lib_to_string 7993 # error "__cpp_lib_to_string should be defined in c++26" 7994 # endif 7995 # if __cpp_lib_to_string != 202306L 7996 # error "__cpp_lib_to_string should have the value 202306L in c++26" 7997 # endif 7998 # else // _LIBCPP_VERSION 7999 # ifdef __cpp_lib_to_string 8000 # error "__cpp_lib_to_string should not be defined because it is unimplemented in libc++!" 8001 # endif 8002 # endif 8003 8004 # ifndef __cpp_lib_to_underlying 8005 # error "__cpp_lib_to_underlying should be defined in c++26" 8006 # endif 8007 # if __cpp_lib_to_underlying != 202102L 8008 # error "__cpp_lib_to_underlying should have the value 202102L in c++26" 8009 # endif 8010 8011 # ifndef __cpp_lib_transformation_trait_aliases 8012 # error "__cpp_lib_transformation_trait_aliases should be defined in c++26" 8013 # endif 8014 # if __cpp_lib_transformation_trait_aliases != 201304L 8015 # error "__cpp_lib_transformation_trait_aliases should have the value 201304L in c++26" 8016 # endif 8017 8018 # ifndef __cpp_lib_transparent_operators 8019 # error "__cpp_lib_transparent_operators should be defined in c++26" 8020 # endif 8021 # if __cpp_lib_transparent_operators != 201510L 8022 # error "__cpp_lib_transparent_operators should have the value 201510L in c++26" 8023 # endif 8024 8025 # ifndef __cpp_lib_tuple_element_t 8026 # error "__cpp_lib_tuple_element_t should be defined in c++26" 8027 # endif 8028 # if __cpp_lib_tuple_element_t != 201402L 8029 # error "__cpp_lib_tuple_element_t should have the value 201402L in c++26" 8030 # endif 8031 8032 # if !defined(_LIBCPP_VERSION) 8033 # ifndef __cpp_lib_tuple_like 8034 # error "__cpp_lib_tuple_like should be defined in c++26" 8035 # endif 8036 # if __cpp_lib_tuple_like != 202311L 8037 # error "__cpp_lib_tuple_like should have the value 202311L in c++26" 8038 # endif 8039 # else // _LIBCPP_VERSION 8040 # ifdef __cpp_lib_tuple_like 8041 # error "__cpp_lib_tuple_like should not be defined because it is unimplemented in libc++!" 8042 # endif 8043 # endif 8044 8045 # ifndef __cpp_lib_tuples_by_type 8046 # error "__cpp_lib_tuples_by_type should be defined in c++26" 8047 # endif 8048 # if __cpp_lib_tuples_by_type != 201304L 8049 # error "__cpp_lib_tuples_by_type should have the value 201304L in c++26" 8050 # endif 8051 8052 # ifndef __cpp_lib_type_identity 8053 # error "__cpp_lib_type_identity should be defined in c++26" 8054 # endif 8055 # if __cpp_lib_type_identity != 201806L 8056 # error "__cpp_lib_type_identity should have the value 201806L in c++26" 8057 # endif 8058 8059 # ifndef __cpp_lib_type_trait_variable_templates 8060 # error "__cpp_lib_type_trait_variable_templates should be defined in c++26" 8061 # endif 8062 # if __cpp_lib_type_trait_variable_templates != 201510L 8063 # error "__cpp_lib_type_trait_variable_templates should have the value 201510L in c++26" 8064 # endif 8065 8066 # ifndef __cpp_lib_uncaught_exceptions 8067 # error "__cpp_lib_uncaught_exceptions should be defined in c++26" 8068 # endif 8069 # if __cpp_lib_uncaught_exceptions != 201411L 8070 # error "__cpp_lib_uncaught_exceptions should have the value 201411L in c++26" 8071 # endif 8072 8073 # ifndef __cpp_lib_unordered_map_try_emplace 8074 # error "__cpp_lib_unordered_map_try_emplace should be defined in c++26" 8075 # endif 8076 # if __cpp_lib_unordered_map_try_emplace != 201411L 8077 # error "__cpp_lib_unordered_map_try_emplace should have the value 201411L in c++26" 8078 # endif 8079 8080 # ifndef __cpp_lib_unreachable 8081 # error "__cpp_lib_unreachable should be defined in c++26" 8082 # endif 8083 # if __cpp_lib_unreachable != 202202L 8084 # error "__cpp_lib_unreachable should have the value 202202L in c++26" 8085 # endif 8086 8087 # ifndef __cpp_lib_unwrap_ref 8088 # error "__cpp_lib_unwrap_ref should be defined in c++26" 8089 # endif 8090 # if __cpp_lib_unwrap_ref != 201811L 8091 # error "__cpp_lib_unwrap_ref should have the value 201811L in c++26" 8092 # endif 8093 8094 # ifndef __cpp_lib_variant 8095 # error "__cpp_lib_variant should be defined in c++26" 8096 # endif 8097 # if __cpp_lib_variant != 202102L 8098 # error "__cpp_lib_variant should have the value 202102L in c++26" 8099 # endif 8100 8101 # ifndef __cpp_lib_void_t 8102 # error "__cpp_lib_void_t should be defined in c++26" 8103 # endif 8104 # if __cpp_lib_void_t != 201411L 8105 # error "__cpp_lib_void_t should have the value 201411L in c++26" 8106 # endif 8107 8108 #endif // TEST_STD_VER > 23 8109 8110