| 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 | // <functional> |
| 13 | |
| 14 | // Test the feature test macros defined by <functional> |
| 15 | |
| 16 | // clang-format off |
| 17 | |
| 18 | #include <functional> |
| 19 | #include "test_macros.h" |
| 20 | |
| 21 | #if TEST_STD_VER < 14 |
| 22 | |
| 23 | # ifdef __cpp_lib_bind_back |
| 24 | # error "__cpp_lib_bind_back should not be defined before c++23" |
| 25 | # endif |
| 26 | |
| 27 | # ifdef __cpp_lib_bind_front |
| 28 | # error "__cpp_lib_bind_front should not be defined before c++20" |
| 29 | # endif |
| 30 | |
| 31 | # ifdef __cpp_lib_boyer_moore_searcher |
| 32 | # error "__cpp_lib_boyer_moore_searcher should not be defined before c++17" |
| 33 | # endif |
| 34 | |
| 35 | # ifdef __cpp_lib_common_reference_wrapper |
| 36 | # error "__cpp_lib_common_reference_wrapper should not be defined before c++20" |
| 37 | # endif |
| 38 | |
| 39 | # ifdef __cpp_lib_constexpr_functional |
| 40 | # error "__cpp_lib_constexpr_functional should not be defined before c++20" |
| 41 | # endif |
| 42 | |
| 43 | # ifdef __cpp_lib_copyable_function |
| 44 | # error "__cpp_lib_copyable_function should not be defined before c++26" |
| 45 | # endif |
| 46 | |
| 47 | # ifdef __cpp_lib_function_ref |
| 48 | # error "__cpp_lib_function_ref should not be defined before c++26" |
| 49 | # endif |
| 50 | |
| 51 | # ifdef __cpp_lib_invoke |
| 52 | # error "__cpp_lib_invoke should not be defined before c++17" |
| 53 | # endif |
| 54 | |
| 55 | # ifdef __cpp_lib_invoke_r |
| 56 | # error "__cpp_lib_invoke_r should not be defined before c++23" |
| 57 | # endif |
| 58 | |
| 59 | # ifdef __cpp_lib_move_only_function |
| 60 | # error "__cpp_lib_move_only_function should not be defined before c++23" |
| 61 | # endif |
| 62 | |
| 63 | # ifdef __cpp_lib_not_fn |
| 64 | # error "__cpp_lib_not_fn should not be defined before c++17" |
| 65 | # endif |
| 66 | |
| 67 | # ifdef __cpp_lib_ranges |
| 68 | # error "__cpp_lib_ranges should not be defined before c++20" |
| 69 | # endif |
| 70 | |
| 71 | # ifdef __cpp_lib_reference_wrapper |
| 72 | # error "__cpp_lib_reference_wrapper should not be defined before c++26" |
| 73 | # endif |
| 74 | |
| 75 | # ifdef __cpp_lib_result_of_sfinae |
| 76 | # error "__cpp_lib_result_of_sfinae should not be defined before c++14" |
| 77 | # endif |
| 78 | |
| 79 | # ifdef __cpp_lib_transparent_operators |
| 80 | # error "__cpp_lib_transparent_operators should not be defined before c++14" |
| 81 | # endif |
| 82 | |
| 83 | # ifdef __cpp_lib_unwrap_ref |
| 84 | # error "__cpp_lib_unwrap_ref should not be defined before c++20" |
| 85 | # endif |
| 86 | |
| 87 | #elif TEST_STD_VER == 14 |
| 88 | |
| 89 | # ifdef __cpp_lib_bind_back |
| 90 | # error "__cpp_lib_bind_back should not be defined before c++23" |
| 91 | # endif |
| 92 | |
| 93 | # ifdef __cpp_lib_bind_front |
| 94 | # error "__cpp_lib_bind_front should not be defined before c++20" |
| 95 | # endif |
| 96 | |
| 97 | # ifdef __cpp_lib_boyer_moore_searcher |
| 98 | # error "__cpp_lib_boyer_moore_searcher should not be defined before c++17" |
| 99 | # endif |
| 100 | |
| 101 | # ifdef __cpp_lib_common_reference_wrapper |
| 102 | # error "__cpp_lib_common_reference_wrapper should not be defined before c++20" |
| 103 | # endif |
| 104 | |
| 105 | # ifdef __cpp_lib_constexpr_functional |
| 106 | # error "__cpp_lib_constexpr_functional should not be defined before c++20" |
| 107 | # endif |
| 108 | |
| 109 | # ifdef __cpp_lib_copyable_function |
| 110 | # error "__cpp_lib_copyable_function should not be defined before c++26" |
| 111 | # endif |
| 112 | |
| 113 | # ifdef __cpp_lib_function_ref |
| 114 | # error "__cpp_lib_function_ref should not be defined before c++26" |
| 115 | # endif |
| 116 | |
| 117 | # ifdef __cpp_lib_invoke |
| 118 | # error "__cpp_lib_invoke should not be defined before c++17" |
| 119 | # endif |
| 120 | |
| 121 | # ifdef __cpp_lib_invoke_r |
| 122 | # error "__cpp_lib_invoke_r should not be defined before c++23" |
| 123 | # endif |
| 124 | |
| 125 | # ifdef __cpp_lib_move_only_function |
| 126 | # error "__cpp_lib_move_only_function should not be defined before c++23" |
| 127 | # endif |
| 128 | |
| 129 | # ifdef __cpp_lib_not_fn |
| 130 | # error "__cpp_lib_not_fn should not be defined before c++17" |
| 131 | # endif |
| 132 | |
| 133 | # ifdef __cpp_lib_ranges |
| 134 | # error "__cpp_lib_ranges should not be defined before c++20" |
| 135 | # endif |
| 136 | |
| 137 | # ifdef __cpp_lib_reference_wrapper |
| 138 | # error "__cpp_lib_reference_wrapper should not be defined before c++26" |
| 139 | # endif |
| 140 | |
| 141 | # ifndef __cpp_lib_result_of_sfinae |
| 142 | # error "__cpp_lib_result_of_sfinae should be defined in c++14" |
| 143 | # endif |
| 144 | # if __cpp_lib_result_of_sfinae != 201210L |
| 145 | # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++14" |
| 146 | # endif |
| 147 | |
| 148 | # ifndef __cpp_lib_transparent_operators |
| 149 | # error "__cpp_lib_transparent_operators should be defined in c++14" |
| 150 | # endif |
| 151 | # if __cpp_lib_transparent_operators != 201210L |
| 152 | # error "__cpp_lib_transparent_operators should have the value 201210L in c++14" |
| 153 | # endif |
| 154 | |
| 155 | # ifdef __cpp_lib_unwrap_ref |
| 156 | # error "__cpp_lib_unwrap_ref should not be defined before c++20" |
| 157 | # endif |
| 158 | |
| 159 | #elif TEST_STD_VER == 17 |
| 160 | |
| 161 | # ifdef __cpp_lib_bind_back |
| 162 | # error "__cpp_lib_bind_back should not be defined before c++23" |
| 163 | # endif |
| 164 | |
| 165 | # ifdef __cpp_lib_bind_front |
| 166 | # error "__cpp_lib_bind_front should not be defined before c++20" |
| 167 | # endif |
| 168 | |
| 169 | # ifndef __cpp_lib_boyer_moore_searcher |
| 170 | # error "__cpp_lib_boyer_moore_searcher should be defined in c++17" |
| 171 | # endif |
| 172 | # if __cpp_lib_boyer_moore_searcher != 201603L |
| 173 | # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++17" |
| 174 | # endif |
| 175 | |
| 176 | # ifdef __cpp_lib_common_reference_wrapper |
| 177 | # error "__cpp_lib_common_reference_wrapper should not be defined before c++20" |
| 178 | # endif |
| 179 | |
| 180 | # ifdef __cpp_lib_constexpr_functional |
| 181 | # error "__cpp_lib_constexpr_functional should not be defined before c++20" |
| 182 | # endif |
| 183 | |
| 184 | # ifdef __cpp_lib_copyable_function |
| 185 | # error "__cpp_lib_copyable_function should not be defined before c++26" |
| 186 | # endif |
| 187 | |
| 188 | # ifdef __cpp_lib_function_ref |
| 189 | # error "__cpp_lib_function_ref should not be defined before c++26" |
| 190 | # endif |
| 191 | |
| 192 | # ifndef __cpp_lib_invoke |
| 193 | # error "__cpp_lib_invoke should be defined in c++17" |
| 194 | # endif |
| 195 | # if __cpp_lib_invoke != 201411L |
| 196 | # error "__cpp_lib_invoke should have the value 201411L in c++17" |
| 197 | # endif |
| 198 | |
| 199 | # ifdef __cpp_lib_invoke_r |
| 200 | # error "__cpp_lib_invoke_r should not be defined before c++23" |
| 201 | # endif |
| 202 | |
| 203 | # ifdef __cpp_lib_move_only_function |
| 204 | # error "__cpp_lib_move_only_function should not be defined before c++23" |
| 205 | # endif |
| 206 | |
| 207 | # ifndef __cpp_lib_not_fn |
| 208 | # error "__cpp_lib_not_fn should be defined in c++17" |
| 209 | # endif |
| 210 | # if __cpp_lib_not_fn != 201603L |
| 211 | # error "__cpp_lib_not_fn should have the value 201603L in c++17" |
| 212 | # endif |
| 213 | |
| 214 | # ifdef __cpp_lib_ranges |
| 215 | # error "__cpp_lib_ranges should not be defined before c++20" |
| 216 | # endif |
| 217 | |
| 218 | # ifdef __cpp_lib_reference_wrapper |
| 219 | # error "__cpp_lib_reference_wrapper should not be defined before c++26" |
| 220 | # endif |
| 221 | |
| 222 | # ifndef __cpp_lib_result_of_sfinae |
| 223 | # error "__cpp_lib_result_of_sfinae should be defined in c++17" |
| 224 | # endif |
| 225 | # if __cpp_lib_result_of_sfinae != 201210L |
| 226 | # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++17" |
| 227 | # endif |
| 228 | |
| 229 | # ifndef __cpp_lib_transparent_operators |
| 230 | # error "__cpp_lib_transparent_operators should be defined in c++17" |
| 231 | # endif |
| 232 | # if __cpp_lib_transparent_operators != 201510L |
| 233 | # error "__cpp_lib_transparent_operators should have the value 201510L in c++17" |
| 234 | # endif |
| 235 | |
| 236 | # ifdef __cpp_lib_unwrap_ref |
| 237 | # error "__cpp_lib_unwrap_ref should not be defined before c++20" |
| 238 | # endif |
| 239 | |
| 240 | #elif TEST_STD_VER == 20 |
| 241 | |
| 242 | # ifdef __cpp_lib_bind_back |
| 243 | # error "__cpp_lib_bind_back should not be defined before c++23" |
| 244 | # endif |
| 245 | |
| 246 | # ifndef __cpp_lib_bind_front |
| 247 | # error "__cpp_lib_bind_front should be defined in c++20" |
| 248 | # endif |
| 249 | # if __cpp_lib_bind_front != 201907L |
| 250 | # error "__cpp_lib_bind_front should have the value 201907L in c++20" |
| 251 | # endif |
| 252 | |
| 253 | # ifndef __cpp_lib_boyer_moore_searcher |
| 254 | # error "__cpp_lib_boyer_moore_searcher should be defined in c++20" |
| 255 | # endif |
| 256 | # if __cpp_lib_boyer_moore_searcher != 201603L |
| 257 | # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++20" |
| 258 | # endif |
| 259 | |
| 260 | # ifndef __cpp_lib_common_reference_wrapper |
| 261 | # error "__cpp_lib_common_reference_wrapper should be defined in c++20" |
| 262 | # endif |
| 263 | # if __cpp_lib_common_reference_wrapper != 202302L |
| 264 | # error "__cpp_lib_common_reference_wrapper should have the value 202302L in c++20" |
| 265 | # endif |
| 266 | |
| 267 | # ifndef __cpp_lib_constexpr_functional |
| 268 | # error "__cpp_lib_constexpr_functional should be defined in c++20" |
| 269 | # endif |
| 270 | # if __cpp_lib_constexpr_functional != 201907L |
| 271 | # error "__cpp_lib_constexpr_functional should have the value 201907L in c++20" |
| 272 | # endif |
| 273 | |
| 274 | # ifdef __cpp_lib_copyable_function |
| 275 | # error "__cpp_lib_copyable_function should not be defined before c++26" |
| 276 | # endif |
| 277 | |
| 278 | # ifdef __cpp_lib_function_ref |
| 279 | # error "__cpp_lib_function_ref should not be defined before c++26" |
| 280 | # endif |
| 281 | |
| 282 | # ifndef __cpp_lib_invoke |
| 283 | # error "__cpp_lib_invoke should be defined in c++20" |
| 284 | # endif |
| 285 | # if __cpp_lib_invoke != 201411L |
| 286 | # error "__cpp_lib_invoke should have the value 201411L in c++20" |
| 287 | # endif |
| 288 | |
| 289 | # ifdef __cpp_lib_invoke_r |
| 290 | # error "__cpp_lib_invoke_r should not be defined before c++23" |
| 291 | # endif |
| 292 | |
| 293 | # ifdef __cpp_lib_move_only_function |
| 294 | # error "__cpp_lib_move_only_function should not be defined before c++23" |
| 295 | # endif |
| 296 | |
| 297 | # ifndef __cpp_lib_not_fn |
| 298 | # error "__cpp_lib_not_fn should be defined in c++20" |
| 299 | # endif |
| 300 | # if __cpp_lib_not_fn != 201603L |
| 301 | # error "__cpp_lib_not_fn should have the value 201603L in c++20" |
| 302 | # endif |
| 303 | |
| 304 | # ifndef __cpp_lib_ranges |
| 305 | # error "__cpp_lib_ranges should be defined in c++20" |
| 306 | # endif |
| 307 | # if __cpp_lib_ranges != 202110L |
| 308 | # error "__cpp_lib_ranges should have the value 202110L in c++20" |
| 309 | # endif |
| 310 | |
| 311 | # ifdef __cpp_lib_reference_wrapper |
| 312 | # error "__cpp_lib_reference_wrapper should not be defined before c++26" |
| 313 | # endif |
| 314 | |
| 315 | # ifndef __cpp_lib_result_of_sfinae |
| 316 | # error "__cpp_lib_result_of_sfinae should be defined in c++20" |
| 317 | # endif |
| 318 | # if __cpp_lib_result_of_sfinae != 201210L |
| 319 | # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++20" |
| 320 | # endif |
| 321 | |
| 322 | # ifndef __cpp_lib_transparent_operators |
| 323 | # error "__cpp_lib_transparent_operators should be defined in c++20" |
| 324 | # endif |
| 325 | # if __cpp_lib_transparent_operators != 201510L |
| 326 | # error "__cpp_lib_transparent_operators should have the value 201510L in c++20" |
| 327 | # endif |
| 328 | |
| 329 | # ifndef __cpp_lib_unwrap_ref |
| 330 | # error "__cpp_lib_unwrap_ref should be defined in c++20" |
| 331 | # endif |
| 332 | # if __cpp_lib_unwrap_ref != 201811L |
| 333 | # error "__cpp_lib_unwrap_ref should have the value 201811L in c++20" |
| 334 | # endif |
| 335 | |
| 336 | #elif TEST_STD_VER == 23 |
| 337 | |
| 338 | # ifndef __cpp_lib_bind_back |
| 339 | # error "__cpp_lib_bind_back should be defined in c++23" |
| 340 | # endif |
| 341 | # if __cpp_lib_bind_back != 202202L |
| 342 | # error "__cpp_lib_bind_back should have the value 202202L in c++23" |
| 343 | # endif |
| 344 | |
| 345 | # ifndef __cpp_lib_bind_front |
| 346 | # error "__cpp_lib_bind_front should be defined in c++23" |
| 347 | # endif |
| 348 | # if __cpp_lib_bind_front != 201907L |
| 349 | # error "__cpp_lib_bind_front should have the value 201907L in c++23" |
| 350 | # endif |
| 351 | |
| 352 | # ifndef __cpp_lib_boyer_moore_searcher |
| 353 | # error "__cpp_lib_boyer_moore_searcher should be defined in c++23" |
| 354 | # endif |
| 355 | # if __cpp_lib_boyer_moore_searcher != 201603L |
| 356 | # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++23" |
| 357 | # endif |
| 358 | |
| 359 | # ifndef __cpp_lib_common_reference_wrapper |
| 360 | # error "__cpp_lib_common_reference_wrapper should be defined in c++23" |
| 361 | # endif |
| 362 | # if __cpp_lib_common_reference_wrapper != 202302L |
| 363 | # error "__cpp_lib_common_reference_wrapper should have the value 202302L in c++23" |
| 364 | # endif |
| 365 | |
| 366 | # ifndef __cpp_lib_constexpr_functional |
| 367 | # error "__cpp_lib_constexpr_functional should be defined in c++23" |
| 368 | # endif |
| 369 | # if __cpp_lib_constexpr_functional != 201907L |
| 370 | # error "__cpp_lib_constexpr_functional should have the value 201907L in c++23" |
| 371 | # endif |
| 372 | |
| 373 | # ifdef __cpp_lib_copyable_function |
| 374 | # error "__cpp_lib_copyable_function should not be defined before c++26" |
| 375 | # endif |
| 376 | |
| 377 | # ifdef __cpp_lib_function_ref |
| 378 | # error "__cpp_lib_function_ref should not be defined before c++26" |
| 379 | # endif |
| 380 | |
| 381 | # ifndef __cpp_lib_invoke |
| 382 | # error "__cpp_lib_invoke should be defined in c++23" |
| 383 | # endif |
| 384 | # if __cpp_lib_invoke != 201411L |
| 385 | # error "__cpp_lib_invoke should have the value 201411L in c++23" |
| 386 | # endif |
| 387 | |
| 388 | # ifndef __cpp_lib_invoke_r |
| 389 | # error "__cpp_lib_invoke_r should be defined in c++23" |
| 390 | # endif |
| 391 | # if __cpp_lib_invoke_r != 202106L |
| 392 | # error "__cpp_lib_invoke_r should have the value 202106L in c++23" |
| 393 | # endif |
| 394 | |
| 395 | # if !defined(_LIBCPP_VERSION) |
| 396 | # ifndef __cpp_lib_move_only_function |
| 397 | # error "__cpp_lib_move_only_function should be defined in c++23" |
| 398 | # endif |
| 399 | # if __cpp_lib_move_only_function != 202110L |
| 400 | # error "__cpp_lib_move_only_function should have the value 202110L in c++23" |
| 401 | # endif |
| 402 | # else |
| 403 | # ifdef __cpp_lib_move_only_function |
| 404 | # error "__cpp_lib_move_only_function should not be defined because it is unimplemented in libc++!" |
| 405 | # endif |
| 406 | # endif |
| 407 | |
| 408 | # ifndef __cpp_lib_not_fn |
| 409 | # error "__cpp_lib_not_fn should be defined in c++23" |
| 410 | # endif |
| 411 | # if __cpp_lib_not_fn != 201603L |
| 412 | # error "__cpp_lib_not_fn should have the value 201603L in c++23" |
| 413 | # endif |
| 414 | |
| 415 | # ifndef __cpp_lib_ranges |
| 416 | # error "__cpp_lib_ranges should be defined in c++23" |
| 417 | # endif |
| 418 | # if __cpp_lib_ranges != 202406L |
| 419 | # error "__cpp_lib_ranges should have the value 202406L in c++23" |
| 420 | # endif |
| 421 | |
| 422 | # ifdef __cpp_lib_reference_wrapper |
| 423 | # error "__cpp_lib_reference_wrapper should not be defined before c++26" |
| 424 | # endif |
| 425 | |
| 426 | # ifndef __cpp_lib_result_of_sfinae |
| 427 | # error "__cpp_lib_result_of_sfinae should be defined in c++23" |
| 428 | # endif |
| 429 | # if __cpp_lib_result_of_sfinae != 201210L |
| 430 | # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++23" |
| 431 | # endif |
| 432 | |
| 433 | # ifndef __cpp_lib_transparent_operators |
| 434 | # error "__cpp_lib_transparent_operators should be defined in c++23" |
| 435 | # endif |
| 436 | # if __cpp_lib_transparent_operators != 201510L |
| 437 | # error "__cpp_lib_transparent_operators should have the value 201510L in c++23" |
| 438 | # endif |
| 439 | |
| 440 | # ifndef __cpp_lib_unwrap_ref |
| 441 | # error "__cpp_lib_unwrap_ref should be defined in c++23" |
| 442 | # endif |
| 443 | # if __cpp_lib_unwrap_ref != 201811L |
| 444 | # error "__cpp_lib_unwrap_ref should have the value 201811L in c++23" |
| 445 | # endif |
| 446 | |
| 447 | #elif TEST_STD_VER > 23 |
| 448 | |
| 449 | # ifndef __cpp_lib_bind_back |
| 450 | # error "__cpp_lib_bind_back should be defined in c++26" |
| 451 | # endif |
| 452 | # if __cpp_lib_bind_back != 202202L |
| 453 | # error "__cpp_lib_bind_back should have the value 202202L in c++26" |
| 454 | # endif |
| 455 | |
| 456 | # ifndef __cpp_lib_bind_front |
| 457 | # error "__cpp_lib_bind_front should be defined in c++26" |
| 458 | # endif |
| 459 | # if __cpp_lib_bind_front != 202306L |
| 460 | # error "__cpp_lib_bind_front should have the value 202306L in c++26" |
| 461 | # endif |
| 462 | |
| 463 | # ifndef __cpp_lib_boyer_moore_searcher |
| 464 | # error "__cpp_lib_boyer_moore_searcher should be defined in c++26" |
| 465 | # endif |
| 466 | # if __cpp_lib_boyer_moore_searcher != 201603L |
| 467 | # error "__cpp_lib_boyer_moore_searcher should have the value 201603L in c++26" |
| 468 | # endif |
| 469 | |
| 470 | # ifndef __cpp_lib_common_reference_wrapper |
| 471 | # error "__cpp_lib_common_reference_wrapper should be defined in c++26" |
| 472 | # endif |
| 473 | # if __cpp_lib_common_reference_wrapper != 202302L |
| 474 | # error "__cpp_lib_common_reference_wrapper should have the value 202302L in c++26" |
| 475 | # endif |
| 476 | |
| 477 | # ifndef __cpp_lib_constexpr_functional |
| 478 | # error "__cpp_lib_constexpr_functional should be defined in c++26" |
| 479 | # endif |
| 480 | # if __cpp_lib_constexpr_functional != 201907L |
| 481 | # error "__cpp_lib_constexpr_functional should have the value 201907L in c++26" |
| 482 | # endif |
| 483 | |
| 484 | # if !defined(_LIBCPP_VERSION) |
| 485 | # ifndef __cpp_lib_copyable_function |
| 486 | # error "__cpp_lib_copyable_function should be defined in c++26" |
| 487 | # endif |
| 488 | # if __cpp_lib_copyable_function != 202306L |
| 489 | # error "__cpp_lib_copyable_function should have the value 202306L in c++26" |
| 490 | # endif |
| 491 | # else |
| 492 | # ifdef __cpp_lib_copyable_function |
| 493 | # error "__cpp_lib_copyable_function should not be defined because it is unimplemented in libc++!" |
| 494 | # endif |
| 495 | # endif |
| 496 | |
| 497 | # if !defined(_LIBCPP_VERSION) |
| 498 | # ifndef __cpp_lib_function_ref |
| 499 | # error "__cpp_lib_function_ref should be defined in c++26" |
| 500 | # endif |
| 501 | # if __cpp_lib_function_ref != 202306L |
| 502 | # error "__cpp_lib_function_ref should have the value 202306L in c++26" |
| 503 | # endif |
| 504 | # else |
| 505 | # ifdef __cpp_lib_function_ref |
| 506 | # error "__cpp_lib_function_ref should not be defined because it is unimplemented in libc++!" |
| 507 | # endif |
| 508 | # endif |
| 509 | |
| 510 | # ifndef __cpp_lib_invoke |
| 511 | # error "__cpp_lib_invoke should be defined in c++26" |
| 512 | # endif |
| 513 | # if __cpp_lib_invoke != 201411L |
| 514 | # error "__cpp_lib_invoke should have the value 201411L in c++26" |
| 515 | # endif |
| 516 | |
| 517 | # ifndef __cpp_lib_invoke_r |
| 518 | # error "__cpp_lib_invoke_r should be defined in c++26" |
| 519 | # endif |
| 520 | # if __cpp_lib_invoke_r != 202106L |
| 521 | # error "__cpp_lib_invoke_r should have the value 202106L in c++26" |
| 522 | # endif |
| 523 | |
| 524 | # if !defined(_LIBCPP_VERSION) |
| 525 | # ifndef __cpp_lib_move_only_function |
| 526 | # error "__cpp_lib_move_only_function should be defined in c++26" |
| 527 | # endif |
| 528 | # if __cpp_lib_move_only_function != 202110L |
| 529 | # error "__cpp_lib_move_only_function should have the value 202110L in c++26" |
| 530 | # endif |
| 531 | # else |
| 532 | # ifdef __cpp_lib_move_only_function |
| 533 | # error "__cpp_lib_move_only_function should not be defined because it is unimplemented in libc++!" |
| 534 | # endif |
| 535 | # endif |
| 536 | |
| 537 | # ifndef __cpp_lib_not_fn |
| 538 | # error "__cpp_lib_not_fn should be defined in c++26" |
| 539 | # endif |
| 540 | # if __cpp_lib_not_fn != 202306L |
| 541 | # error "__cpp_lib_not_fn should have the value 202306L in c++26" |
| 542 | # endif |
| 543 | |
| 544 | # ifndef __cpp_lib_ranges |
| 545 | # error "__cpp_lib_ranges should be defined in c++26" |
| 546 | # endif |
| 547 | # if __cpp_lib_ranges != 202406L |
| 548 | # error "__cpp_lib_ranges should have the value 202406L in c++26" |
| 549 | # endif |
| 550 | |
| 551 | # ifndef __cpp_lib_reference_wrapper |
| 552 | # error "__cpp_lib_reference_wrapper should be defined in c++26" |
| 553 | # endif |
| 554 | # if __cpp_lib_reference_wrapper != 202403L |
| 555 | # error "__cpp_lib_reference_wrapper should have the value 202403L in c++26" |
| 556 | # endif |
| 557 | |
| 558 | # ifndef __cpp_lib_result_of_sfinae |
| 559 | # error "__cpp_lib_result_of_sfinae should be defined in c++26" |
| 560 | # endif |
| 561 | # if __cpp_lib_result_of_sfinae != 201210L |
| 562 | # error "__cpp_lib_result_of_sfinae should have the value 201210L in c++26" |
| 563 | # endif |
| 564 | |
| 565 | # ifndef __cpp_lib_transparent_operators |
| 566 | # error "__cpp_lib_transparent_operators should be defined in c++26" |
| 567 | # endif |
| 568 | # if __cpp_lib_transparent_operators != 201510L |
| 569 | # error "__cpp_lib_transparent_operators should have the value 201510L in c++26" |
| 570 | # endif |
| 571 | |
| 572 | # ifndef __cpp_lib_unwrap_ref |
| 573 | # error "__cpp_lib_unwrap_ref should be defined in c++26" |
| 574 | # endif |
| 575 | # if __cpp_lib_unwrap_ref != 201811L |
| 576 | # error "__cpp_lib_unwrap_ref should have the value 201811L in c++26" |
| 577 | # endif |
| 578 | |
| 579 | #endif // TEST_STD_VER > 23 |
| 580 | |
| 581 | // clang-format on |
| 582 | |
| 583 | |