10b57cec5SDimitry Andric// -*- C++ -*- 2349cc55cSDimitry Andric//===----------------------------------------------------------------------===// 30b57cec5SDimitry Andric// 40b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 50b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information. 60b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 70b57cec5SDimitry Andric// 80b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 90b57cec5SDimitry Andric 100b57cec5SDimitry Andric#ifndef _LIBCPP_VERSIONH 110b57cec5SDimitry Andric#define _LIBCPP_VERSIONH 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric/* 140b57cec5SDimitry Andric version synopsis 150b57cec5SDimitry Andric 160b57cec5SDimitry AndricMacro name Value Headers 1704eeddc0SDimitry Andric__cpp_lib_adaptor_iterator_pair_constructor 202106L <queue> <stack> 180b57cec5SDimitry Andric__cpp_lib_addressof_constexpr 201603L <memory> 1904eeddc0SDimitry Andric__cpp_lib_allocate_at_least 202106L <memory> 20e8d8bef9SDimitry Andric__cpp_lib_allocator_traits_is_always_equal 201411L <deque> <forward_list> <list> 21e8d8bef9SDimitry Andric <map> <memory> <scoped_allocator> 22e8d8bef9SDimitry Andric <set> <string> <unordered_map> 23e8d8bef9SDimitry Andric <unordered_set> <vector> 240b57cec5SDimitry Andric__cpp_lib_any 201606L <any> 250b57cec5SDimitry Andric__cpp_lib_apply 201603L <tuple> 26e8d8bef9SDimitry Andric__cpp_lib_array_constexpr 201811L <array> <iterator> 275ffd83dbSDimitry Andric 201603L // C++17 280b57cec5SDimitry Andric__cpp_lib_as_const 201510L <utility> 2904eeddc0SDimitry Andric__cpp_lib_associative_heterogeneous_erasure 202110L <map> <set> <unordered_map> 3004eeddc0SDimitry Andric <unordered_set> 3106c3fb27SDimitry Andric__cpp_lib_associative_heterogeneous_insertion 202306L <map> <set> <unordered_map> 3206c3fb27SDimitry Andric <unordered_set> 33e8d8bef9SDimitry Andric__cpp_lib_assume_aligned 201811L <memory> 34e8d8bef9SDimitry Andric__cpp_lib_atomic_flag_test 201907L <atomic> 35e8d8bef9SDimitry Andric__cpp_lib_atomic_float 201711L <atomic> 360b57cec5SDimitry Andric__cpp_lib_atomic_is_always_lock_free 201603L <atomic> 37e8d8bef9SDimitry Andric__cpp_lib_atomic_lock_free_type_aliases 201907L <atomic> 380b57cec5SDimitry Andric__cpp_lib_atomic_ref 201806L <atomic> 39e8d8bef9SDimitry Andric__cpp_lib_atomic_shared_ptr 201711L <atomic> 40e8d8bef9SDimitry Andric__cpp_lib_atomic_value_initialization 201911L <atomic> <memory> 41e8d8bef9SDimitry Andric__cpp_lib_atomic_wait 201907L <atomic> 42e8d8bef9SDimitry Andric__cpp_lib_barrier 201907L <barrier> 4306c3fb27SDimitry Andric__cpp_lib_bind_back 202306L <functional> 4406c3fb27SDimitry Andric 202202L // C++23 4506c3fb27SDimitry Andric__cpp_lib_bind_front 202306L <functional> 4606c3fb27SDimitry Andric 201907L // C++20 470b57cec5SDimitry Andric__cpp_lib_bit_cast 201806L <bit> 48e8d8bef9SDimitry Andric__cpp_lib_bitops 201907L <bit> 4906c3fb27SDimitry Andric__cpp_lib_bitset 202306L <bitset> 500b57cec5SDimitry Andric__cpp_lib_bool_constant 201505L <type_traits> 51e8d8bef9SDimitry Andric__cpp_lib_bounded_array_traits 201902L <type_traits> 520b57cec5SDimitry Andric__cpp_lib_boyer_moore_searcher 201603L <functional> 530b57cec5SDimitry Andric__cpp_lib_byte 201603L <cstddef> 544824e7fdSDimitry Andric__cpp_lib_byteswap 202110L <bit> 55fcaf7f86SDimitry Andric__cpp_lib_char8_t 201907L <atomic> <filesystem> <istream> 560b57cec5SDimitry Andric <limits> <locale> <ostream> 570b57cec5SDimitry Andric <string> <string_view> 580b57cec5SDimitry Andric__cpp_lib_chrono 201611L <chrono> 590b57cec5SDimitry Andric__cpp_lib_chrono_udls 201304L <chrono> 600b57cec5SDimitry Andric__cpp_lib_clamp 201603L <algorithm> 610b57cec5SDimitry Andric__cpp_lib_complex_udls 201309L <complex> 62e8d8bef9SDimitry Andric__cpp_lib_concepts 202002L <concepts> 63bdd1243dSDimitry Andric__cpp_lib_constexpr_algorithms 201806L <algorithm> <utility> 64bdd1243dSDimitry Andric__cpp_lib_constexpr_bitset 202207L <bitset> 65bdd1243dSDimitry Andric__cpp_lib_constexpr_charconv 202207L <charconv> 6681ad6265SDimitry Andric__cpp_lib_constexpr_cmath 202202L <cmath> <cstdlib> 67e8d8bef9SDimitry Andric__cpp_lib_constexpr_complex 201711L <complex> 68e8d8bef9SDimitry Andric__cpp_lib_constexpr_dynamic_alloc 201907L <memory> 69e8d8bef9SDimitry Andric__cpp_lib_constexpr_functional 201907L <functional> 70e8d8bef9SDimitry Andric__cpp_lib_constexpr_iterator 201811L <iterator> 71bdd1243dSDimitry Andric__cpp_lib_constexpr_memory 202202L <memory> 72bdd1243dSDimitry Andric 201811L // C++20 73e8d8bef9SDimitry Andric__cpp_lib_constexpr_numeric 201911L <numeric> 7481ad6265SDimitry Andric__cpp_lib_constexpr_string 201907L <string> 75e8d8bef9SDimitry Andric__cpp_lib_constexpr_string_view 201811L <string_view> 76e8d8bef9SDimitry Andric__cpp_lib_constexpr_tuple 201811L <tuple> 7704eeddc0SDimitry Andric__cpp_lib_constexpr_typeinfo 202106L <typeinfo> 78e8d8bef9SDimitry Andric__cpp_lib_constexpr_utility 201811L <utility> 79e8d8bef9SDimitry Andric__cpp_lib_constexpr_vector 201907L <vector> 8006c3fb27SDimitry Andric__cpp_lib_copyable_function 202306L <functional> 81e8d8bef9SDimitry Andric__cpp_lib_coroutine 201902L <coroutine> 825f757f3fSDimitry Andric__cpp_lib_debugging 202311L <debugging> 830b57cec5SDimitry Andric__cpp_lib_destroying_delete 201806L <new> 840b57cec5SDimitry Andric__cpp_lib_enable_shared_from_this 201603L <memory> 85480093f4SDimitry Andric__cpp_lib_endian 201907L <bit> 86e8d8bef9SDimitry Andric__cpp_lib_erase_if 202002L <deque> <forward_list> <list> 87e8d8bef9SDimitry Andric <map> <set> <string> 88e8d8bef9SDimitry Andric <unordered_map> <unordered_set> <vector> 890b57cec5SDimitry Andric__cpp_lib_exchange_function 201304L <utility> 90e8d8bef9SDimitry Andric__cpp_lib_execution 201902L <execution> 91e8d8bef9SDimitry Andric 201603L // C++17 9206c3fb27SDimitry Andric__cpp_lib_expected 202211L <expected> 930b57cec5SDimitry Andric__cpp_lib_filesystem 201703L <filesystem> 944824e7fdSDimitry Andric__cpp_lib_format 202106L <format> 9506c3fb27SDimitry Andric__cpp_lib_format_ranges 202207L <format> 96*cb14a3feSDimitry Andric__cpp_lib_format_uchar 202311L <format> 9706c3fb27SDimitry Andric__cpp_lib_formatters 202302L <stacktrace> <thread> 98bdd1243dSDimitry Andric__cpp_lib_forward_like 202207L <utility> 995f757f3fSDimitry Andric__cpp_lib_freestanding_algorithm 202311L <algorithm> 1005f757f3fSDimitry Andric__cpp_lib_freestanding_array 202311L <array> 1015f757f3fSDimitry Andric__cpp_lib_freestanding_cstring 202306L <cstring> 1025f757f3fSDimitry Andric__cpp_lib_freestanding_expected 202311L <expected> 1035f757f3fSDimitry Andric__cpp_lib_freestanding_mdspan 202311L <mdspan> 1045f757f3fSDimitry Andric__cpp_lib_freestanding_optional 202311L <optional> 1055f757f3fSDimitry Andric__cpp_lib_freestanding_string_view 202311L <string_view> 1065f757f3fSDimitry Andric__cpp_lib_freestanding_variant 202311L <variant> 10706c3fb27SDimitry Andric__cpp_lib_fstream_native_handle 202306L <fstream> 10806c3fb27SDimitry Andric__cpp_lib_function_ref 202306L <functional> 1090b57cec5SDimitry Andric__cpp_lib_gcd_lcm 201606L <numeric> 1100b57cec5SDimitry Andric__cpp_lib_generic_associative_lookup 201304L <map> <set> 1110b57cec5SDimitry Andric__cpp_lib_generic_unordered_lookup 201811L <unordered_map> <unordered_set> 1120b57cec5SDimitry Andric__cpp_lib_hardware_interference_size 201703L <new> 1130b57cec5SDimitry Andric__cpp_lib_has_unique_object_representations 201606L <type_traits> 11406c3fb27SDimitry Andric__cpp_lib_hazard_pointer 202306L <hazard_pointer> 1150b57cec5SDimitry Andric__cpp_lib_hypot 201603L <cmath> 1160b57cec5SDimitry Andric__cpp_lib_incomplete_container_elements 201505L <forward_list> <list> <vector> 117e8d8bef9SDimitry Andric__cpp_lib_int_pow2 202002L <bit> 118e8d8bef9SDimitry Andric__cpp_lib_integer_comparison_functions 202002L <utility> 1190b57cec5SDimitry Andric__cpp_lib_integer_sequence 201304L <utility> 1200b57cec5SDimitry Andric__cpp_lib_integral_constant_callable 201304L <type_traits> 121e8d8bef9SDimitry Andric__cpp_lib_interpolate 201902L <cmath> <numeric> 1220b57cec5SDimitry Andric__cpp_lib_invoke 201411L <functional> 12304eeddc0SDimitry Andric__cpp_lib_invoke_r 202106L <functional> 1245f757f3fSDimitry Andric__cpp_lib_ios_noreplace 202207L <ios> 1250b57cec5SDimitry Andric__cpp_lib_is_aggregate 201703L <type_traits> 1260b57cec5SDimitry Andric__cpp_lib_is_constant_evaluated 201811L <type_traits> 1270b57cec5SDimitry Andric__cpp_lib_is_final 201402L <type_traits> 1280b57cec5SDimitry Andric__cpp_lib_is_invocable 201703L <type_traits> 129e8d8bef9SDimitry Andric__cpp_lib_is_layout_compatible 201907L <type_traits> 130e8d8bef9SDimitry Andric__cpp_lib_is_nothrow_convertible 201806L <type_traits> 1310b57cec5SDimitry Andric__cpp_lib_is_null_pointer 201309L <type_traits> 132e8d8bef9SDimitry Andric__cpp_lib_is_pointer_interconvertible 201907L <type_traits> 133e8d8bef9SDimitry Andric__cpp_lib_is_scoped_enum 202011L <type_traits> 1340b57cec5SDimitry Andric__cpp_lib_is_swappable 201603L <type_traits> 135e8d8bef9SDimitry Andric__cpp_lib_jthread 201911L <stop_token> <thread> 136e8d8bef9SDimitry Andric__cpp_lib_latch 201907L <latch> 1370b57cec5SDimitry Andric__cpp_lib_launder 201606L <new> 1385f757f3fSDimitry Andric__cpp_lib_linalg 202311L <linalg> 1390b57cec5SDimitry Andric__cpp_lib_list_remove_return_type 201806L <forward_list> <list> 1400b57cec5SDimitry Andric__cpp_lib_logical_traits 201510L <type_traits> 1410b57cec5SDimitry Andric__cpp_lib_make_from_tuple 201606L <tuple> 1420b57cec5SDimitry Andric__cpp_lib_make_reverse_iterator 201402L <iterator> 1430b57cec5SDimitry Andric__cpp_lib_make_unique 201304L <memory> 1440b57cec5SDimitry Andric__cpp_lib_map_try_emplace 201411L <map> 1455ffd83dbSDimitry Andric__cpp_lib_math_constants 201907L <numbers> 1460b57cec5SDimitry Andric__cpp_lib_math_special_functions 201603L <cmath> 14706c3fb27SDimitry Andric__cpp_lib_mdspan 202207L <mdspan> 1480b57cec5SDimitry Andric__cpp_lib_memory_resource 201603L <memory_resource> 14906c3fb27SDimitry Andric__cpp_lib_move_iterator_concept 202207L <iterator> 15004eeddc0SDimitry Andric__cpp_lib_move_only_function 202110L <functional> 1510b57cec5SDimitry Andric__cpp_lib_node_extract 201606L <map> <set> <unordered_map> 1520b57cec5SDimitry Andric <unordered_set> 153e8d8bef9SDimitry Andric__cpp_lib_nonmember_container_access 201411L <array> <deque> <forward_list> 154e8d8bef9SDimitry Andric <iterator> <list> <map> 1550b57cec5SDimitry Andric <regex> <set> <string> 1560b57cec5SDimitry Andric <unordered_map> <unordered_set> <vector> 1570b57cec5SDimitry Andric__cpp_lib_not_fn 201603L <functional> 1580b57cec5SDimitry Andric__cpp_lib_null_iterators 201304L <iterator> 15981ad6265SDimitry Andric__cpp_lib_optional 202110L <optional> 16081ad6265SDimitry Andric 201606L // C++17 1615f757f3fSDimitry Andric__cpp_lib_out_ptr 202311L <memory> 1625f757f3fSDimitry Andric 202106L // C++23 1630b57cec5SDimitry Andric__cpp_lib_parallel_algorithm 201603L <algorithm> <numeric> 16404eeddc0SDimitry Andric__cpp_lib_polymorphic_allocator 201902L <memory_resource> 16506c3fb27SDimitry Andric__cpp_lib_print 202207L <ostream> <print> 1660b57cec5SDimitry Andric__cpp_lib_quoted_string_io 201304L <iomanip> 16706c3fb27SDimitry Andric__cpp_lib_ranges 202207L <algorithm> <functional> <iterator> 1680b57cec5SDimitry Andric <memory> <ranges> 1695f757f3fSDimitry Andric__cpp_lib_ranges_as_const 202207L <ranges> 1701ac55f4cSDimitry Andric__cpp_lib_ranges_as_rvalue 202207L <ranges> 17181ad6265SDimitry Andric__cpp_lib_ranges_chunk 202202L <ranges> 17281ad6265SDimitry Andric__cpp_lib_ranges_chunk_by 202202L <ranges> 17381ad6265SDimitry Andric__cpp_lib_ranges_iota 202202L <numeric> 17481ad6265SDimitry Andric__cpp_lib_ranges_join_with 202202L <ranges> 17506c3fb27SDimitry Andric__cpp_lib_ranges_repeat 202207L <ranges> 17681ad6265SDimitry Andric__cpp_lib_ranges_slide 202202L <ranges> 17704eeddc0SDimitry Andric__cpp_lib_ranges_starts_ends_with 202106L <algorithm> 17881ad6265SDimitry Andric__cpp_lib_ranges_to_container 202202L <deque> <forward_list> <list> 17906c3fb27SDimitry Andric <map> <queue> <ranges> 18081ad6265SDimitry Andric <set> <stack> <string> 18181ad6265SDimitry Andric <unordered_map> <unordered_set> <vector> 18204eeddc0SDimitry Andric__cpp_lib_ranges_zip 202110L <ranges> <tuple> <utility> 18306c3fb27SDimitry Andric__cpp_lib_ratio 202306L <ratio> 1840b57cec5SDimitry Andric__cpp_lib_raw_memory_algorithms 201606L <memory> 18506c3fb27SDimitry Andric__cpp_lib_rcu 202306L <rcu> 18681ad6265SDimitry Andric__cpp_lib_reference_from_temporary 202202L <type_traits> 187e8d8bef9SDimitry Andric__cpp_lib_remove_cvref 201711L <type_traits> 1880b57cec5SDimitry Andric__cpp_lib_result_of_sfinae 201210L <functional> <type_traits> 1890b57cec5SDimitry Andric__cpp_lib_robust_nonmodifying_seq_ops 201304L <algorithm> 1900b57cec5SDimitry Andric__cpp_lib_sample 201603L <algorithm> 191*cb14a3feSDimitry Andric__cpp_lib_saturation_arithmetic 202311L <numeric> 1920b57cec5SDimitry Andric__cpp_lib_scoped_lock 201703L <mutex> 193e8d8bef9SDimitry Andric__cpp_lib_semaphore 201907L <semaphore> 1940b57cec5SDimitry Andric__cpp_lib_shared_mutex 201505L <shared_mutex> 19581ad6265SDimitry Andric__cpp_lib_shared_ptr_arrays 201707L <memory> 19681ad6265SDimitry Andric 201611L // C++17 1970b57cec5SDimitry Andric__cpp_lib_shared_ptr_weak_type 201606L <memory> 1980b57cec5SDimitry Andric__cpp_lib_shared_timed_mutex 201402L <shared_mutex> 199e8d8bef9SDimitry Andric__cpp_lib_shift 201806L <algorithm> 200e8d8bef9SDimitry Andric__cpp_lib_smart_ptr_for_overwrite 202002L <memory> 20106c3fb27SDimitry Andric__cpp_lib_smart_ptr_owner_equality 202306L <memory> 202e8d8bef9SDimitry Andric__cpp_lib_source_location 201907L <source_location> 2035ffd83dbSDimitry Andric__cpp_lib_span 202002L <span> 2045f757f3fSDimitry Andric__cpp_lib_span_initializer_list 202311L <span> 20504eeddc0SDimitry Andric__cpp_lib_spanstream 202106L <spanstream> 206e8d8bef9SDimitry Andric__cpp_lib_ssize 201902L <iterator> 20706c3fb27SDimitry Andric__cpp_lib_sstream_from_string_view 202306L <sstream> 208e8d8bef9SDimitry Andric__cpp_lib_stacktrace 202011L <stacktrace> 209e8d8bef9SDimitry Andric__cpp_lib_starts_ends_with 201711L <string> <string_view> 210e8d8bef9SDimitry Andric__cpp_lib_stdatomic_h 202011L <stdatomic.h> 211e8d8bef9SDimitry Andric__cpp_lib_string_contains 202011L <string> <string_view> 21204eeddc0SDimitry Andric__cpp_lib_string_resize_and_overwrite 202110L <string> 2130b57cec5SDimitry Andric__cpp_lib_string_udls 201304L <string> 214e8d8bef9SDimitry Andric__cpp_lib_string_view 201803L <string> <string_view> 215e8d8bef9SDimitry Andric 201606L // C++17 21606c3fb27SDimitry Andric__cpp_lib_submdspan 202306L <mdspan> 217e8d8bef9SDimitry Andric__cpp_lib_syncbuf 201803L <syncstream> 21806c3fb27SDimitry Andric__cpp_lib_text_encoding 202306L <text_encoding> 219e8d8bef9SDimitry Andric__cpp_lib_three_way_comparison 201907L <compare> 220e8d8bef9SDimitry Andric__cpp_lib_to_address 201711L <memory> 2215ffd83dbSDimitry Andric__cpp_lib_to_array 201907L <array> 2225f757f3fSDimitry Andric__cpp_lib_to_chars 202306L <charconv> 2235f757f3fSDimitry Andric 201611L // C++17 22406c3fb27SDimitry Andric__cpp_lib_to_string 202306L <string> 225fe6060f1SDimitry Andric__cpp_lib_to_underlying 202102L <utility> 2260b57cec5SDimitry Andric__cpp_lib_transformation_trait_aliases 201304L <type_traits> 227e8d8bef9SDimitry Andric__cpp_lib_transparent_operators 201510L <functional> <memory> 2280b57cec5SDimitry Andric 201210L // C++14 2290b57cec5SDimitry Andric__cpp_lib_tuple_element_t 201402L <tuple> 2305f757f3fSDimitry Andric__cpp_lib_tuple_like 202311L <map> <tuple> <unordered_map> 2315f757f3fSDimitry Andric <utility> 2325f757f3fSDimitry Andric 202207L // C++23 233e8d8bef9SDimitry Andric__cpp_lib_tuples_by_type 201304L <tuple> <utility> 23404eeddc0SDimitry Andric__cpp_lib_type_identity 201806L <type_traits> 2350b57cec5SDimitry Andric__cpp_lib_type_trait_variable_templates 201510L <type_traits> 2360b57cec5SDimitry Andric__cpp_lib_uncaught_exceptions 201411L <exception> 2370b57cec5SDimitry Andric__cpp_lib_unordered_map_try_emplace 201411L <unordered_map> 23881ad6265SDimitry Andric__cpp_lib_unreachable 202202L <utility> 239e8d8bef9SDimitry Andric__cpp_lib_unwrap_ref 201811L <functional> 240fe6060f1SDimitry Andric__cpp_lib_variant 202102L <variant> 2410b57cec5SDimitry Andric__cpp_lib_void_t 201411L <type_traits> 24206c3fb27SDimitry Andric__cpp_lib_within_lifetime 202306L <type_traits> 2430b57cec5SDimitry Andric 2440b57cec5SDimitry Andric*/ 2450b57cec5SDimitry Andric 24681ad6265SDimitry Andric#include <__assert> // all public C++ headers provide the assertion handler 2475f757f3fSDimitry Andric#include <__availability> 2480b57cec5SDimitry Andric#include <__config> 2490b57cec5SDimitry Andric 2500b57cec5SDimitry Andric#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 2510b57cec5SDimitry Andric# pragma GCC system_header 2520b57cec5SDimitry Andric#endif 2530b57cec5SDimitry Andric 254fe6060f1SDimitry Andric// clang-format off 255fe6060f1SDimitry Andric 25606c3fb27SDimitry Andric#if _LIBCPP_STD_VER >= 14 2570b57cec5SDimitry Andric# define __cpp_lib_chrono_udls 201304L 2580b57cec5SDimitry Andric# define __cpp_lib_complex_udls 201309L 2590b57cec5SDimitry Andric# define __cpp_lib_exchange_function 201304L 2600b57cec5SDimitry Andric# define __cpp_lib_generic_associative_lookup 201304L 2610b57cec5SDimitry Andric# define __cpp_lib_integer_sequence 201304L 2620b57cec5SDimitry Andric# define __cpp_lib_integral_constant_callable 201304L 2630b57cec5SDimitry Andric# define __cpp_lib_is_final 201402L 2640b57cec5SDimitry Andric# define __cpp_lib_is_null_pointer 201309L 2650b57cec5SDimitry Andric# define __cpp_lib_make_reverse_iterator 201402L 2660b57cec5SDimitry Andric# define __cpp_lib_make_unique 201304L 2670b57cec5SDimitry Andric# define __cpp_lib_null_iterators 201304L 2680b57cec5SDimitry Andric# define __cpp_lib_quoted_string_io 201304L 2690b57cec5SDimitry Andric# define __cpp_lib_result_of_sfinae 201210L 2700b57cec5SDimitry Andric# define __cpp_lib_robust_nonmodifying_seq_ops 201304L 2715f757f3fSDimitry Andric# if !defined(_LIBCPP_HAS_NO_THREADS) 2720b57cec5SDimitry Andric# define __cpp_lib_shared_timed_mutex 201402L 2730b57cec5SDimitry Andric# endif 2740b57cec5SDimitry Andric# define __cpp_lib_string_udls 201304L 2750b57cec5SDimitry Andric# define __cpp_lib_transformation_trait_aliases 201304L 2760b57cec5SDimitry Andric# define __cpp_lib_transparent_operators 201210L 2770b57cec5SDimitry Andric# define __cpp_lib_tuple_element_t 201402L 2780b57cec5SDimitry Andric# define __cpp_lib_tuples_by_type 201304L 2790b57cec5SDimitry Andric#endif 2800b57cec5SDimitry Andric 28106c3fb27SDimitry Andric#if _LIBCPP_STD_VER >= 17 2820b57cec5SDimitry Andric# define __cpp_lib_addressof_constexpr 201603L 2830b57cec5SDimitry Andric# define __cpp_lib_allocator_traits_is_always_equal 201411L 2840b57cec5SDimitry Andric# define __cpp_lib_any 201606L 2850b57cec5SDimitry Andric# define __cpp_lib_apply 201603L 2860b57cec5SDimitry Andric# define __cpp_lib_array_constexpr 201603L 2870b57cec5SDimitry Andric# define __cpp_lib_as_const 201510L 2880b57cec5SDimitry Andric# define __cpp_lib_atomic_is_always_lock_free 201603L 2890b57cec5SDimitry Andric# define __cpp_lib_bool_constant 201505L 29081ad6265SDimitry Andric# define __cpp_lib_boyer_moore_searcher 201603L 2910b57cec5SDimitry Andric# define __cpp_lib_byte 201603L 2920b57cec5SDimitry Andric# define __cpp_lib_chrono 201611L 2930b57cec5SDimitry Andric# define __cpp_lib_clamp 201603L 2940b57cec5SDimitry Andric# define __cpp_lib_enable_shared_from_this 201603L 2950b57cec5SDimitry Andric// # define __cpp_lib_execution 201603L 2965f757f3fSDimitry Andric# if _LIBCPP_AVAILABILITY_HAS_FILESYSTEM_LIBRARY 2970b57cec5SDimitry Andric# define __cpp_lib_filesystem 201703L 2984652422eSDimitry Andric# endif 2990b57cec5SDimitry Andric# define __cpp_lib_gcd_lcm 201606L 30081ad6265SDimitry Andric# if defined(__GCC_DESTRUCTIVE_SIZE) && defined(__GCC_CONSTRUCTIVE_SIZE) 30181ad6265SDimitry Andric# define __cpp_lib_hardware_interference_size 201703L 30281ad6265SDimitry Andric# endif 3030b57cec5SDimitry Andric# define __cpp_lib_has_unique_object_representations 201606L 3040b57cec5SDimitry Andric# define __cpp_lib_hypot 201603L 3050b57cec5SDimitry Andric# define __cpp_lib_incomplete_container_elements 201505L 3060b57cec5SDimitry Andric# define __cpp_lib_invoke 201411L 3070b57cec5SDimitry Andric# define __cpp_lib_is_aggregate 201703L 3080b57cec5SDimitry Andric# define __cpp_lib_is_invocable 201703L 3090b57cec5SDimitry Andric# define __cpp_lib_is_swappable 201603L 3100b57cec5SDimitry Andric# define __cpp_lib_launder 201606L 3110b57cec5SDimitry Andric# define __cpp_lib_logical_traits 201510L 3120b57cec5SDimitry Andric# define __cpp_lib_make_from_tuple 201606L 3130b57cec5SDimitry Andric# define __cpp_lib_map_try_emplace 201411L 3140b57cec5SDimitry Andric// # define __cpp_lib_math_special_functions 201603L 3155f757f3fSDimitry Andric# if _LIBCPP_AVAILABILITY_HAS_PMR 316bdd1243dSDimitry Andric# define __cpp_lib_memory_resource 201603L 31706c3fb27SDimitry Andric# endif 3180b57cec5SDimitry Andric# define __cpp_lib_node_extract 201606L 3190b57cec5SDimitry Andric# define __cpp_lib_nonmember_container_access 201411L 3200b57cec5SDimitry Andric# define __cpp_lib_not_fn 201603L 3210b57cec5SDimitry Andric# define __cpp_lib_optional 201606L 3220b57cec5SDimitry Andric// # define __cpp_lib_parallel_algorithm 201603L 3230b57cec5SDimitry Andric# define __cpp_lib_raw_memory_algorithms 201606L 3240b57cec5SDimitry Andric# define __cpp_lib_sample 201603L 3250b57cec5SDimitry Andric# define __cpp_lib_scoped_lock 201703L 3265f757f3fSDimitry Andric# if !defined(_LIBCPP_HAS_NO_THREADS) 3270b57cec5SDimitry Andric# define __cpp_lib_shared_mutex 201505L 3280b57cec5SDimitry Andric# endif 329e8d8bef9SDimitry Andric# define __cpp_lib_shared_ptr_arrays 201611L 3300b57cec5SDimitry Andric# define __cpp_lib_shared_ptr_weak_type 201606L 3310b57cec5SDimitry Andric# define __cpp_lib_string_view 201606L 3320b57cec5SDimitry Andric// # define __cpp_lib_to_chars 201611L 3330b57cec5SDimitry Andric# undef __cpp_lib_transparent_operators 3340b57cec5SDimitry Andric# define __cpp_lib_transparent_operators 201510L 3350b57cec5SDimitry Andric# define __cpp_lib_type_trait_variable_templates 201510L 3360b57cec5SDimitry Andric# define __cpp_lib_uncaught_exceptions 201411L 3370b57cec5SDimitry Andric# define __cpp_lib_unordered_map_try_emplace 201411L 338fe6060f1SDimitry Andric# define __cpp_lib_variant 202102L 3390b57cec5SDimitry Andric# define __cpp_lib_void_t 201411L 3400b57cec5SDimitry Andric#endif 3410b57cec5SDimitry Andric 34206c3fb27SDimitry Andric#if _LIBCPP_STD_VER >= 20 3435ffd83dbSDimitry Andric# undef __cpp_lib_array_constexpr 3445ffd83dbSDimitry Andric# define __cpp_lib_array_constexpr 201811L 34581ad6265SDimitry Andric# define __cpp_lib_assume_aligned 201811L 346e8d8bef9SDimitry Andric# define __cpp_lib_atomic_flag_test 201907L 347e8d8bef9SDimitry Andric// # define __cpp_lib_atomic_float 201711L 348e8d8bef9SDimitry Andric# define __cpp_lib_atomic_lock_free_type_aliases 201907L 3490b57cec5SDimitry Andric// # define __cpp_lib_atomic_ref 201806L 350e8d8bef9SDimitry Andric// # define __cpp_lib_atomic_shared_ptr 201711L 351fe6060f1SDimitry Andric# define __cpp_lib_atomic_value_initialization 201911L 3525f757f3fSDimitry Andric# if _LIBCPP_AVAILABILITY_HAS_SYNC 353e8d8bef9SDimitry Andric# define __cpp_lib_atomic_wait 201907L 354e8d8bef9SDimitry Andric# endif 3555f757f3fSDimitry Andric# if !defined(_LIBCPP_HAS_NO_THREADS) && _LIBCPP_AVAILABILITY_HAS_SYNC 356e8d8bef9SDimitry Andric# define __cpp_lib_barrier 201907L 357e8d8bef9SDimitry Andric# endif 358fe6060f1SDimitry Andric# define __cpp_lib_bind_front 201907L 359349cc55cSDimitry Andric# define __cpp_lib_bit_cast 201806L 36006c3fb27SDimitry Andric# define __cpp_lib_bitops 201907L 361e8d8bef9SDimitry Andric# define __cpp_lib_bounded_array_traits 201902L 362fe6060f1SDimitry Andric# if !defined(_LIBCPP_HAS_NO_CHAR8_T) 363fcaf7f86SDimitry Andric# define __cpp_lib_char8_t 201907L 3640b57cec5SDimitry Andric# endif 365fe6060f1SDimitry Andric# define __cpp_lib_concepts 202002L 366fe6060f1SDimitry Andric# define __cpp_lib_constexpr_algorithms 201806L 367bdd1243dSDimitry Andric# define __cpp_lib_constexpr_complex 201711L 368e8d8bef9SDimitry Andric# define __cpp_lib_constexpr_dynamic_alloc 201907L 369e8d8bef9SDimitry Andric# define __cpp_lib_constexpr_functional 201907L 370fe6060f1SDimitry Andric# define __cpp_lib_constexpr_iterator 201811L 371fe6060f1SDimitry Andric# define __cpp_lib_constexpr_memory 201811L 372e8d8bef9SDimitry Andric# define __cpp_lib_constexpr_numeric 201911L 37381ad6265SDimitry Andric# define __cpp_lib_constexpr_string 201907L 374fe6060f1SDimitry Andric# define __cpp_lib_constexpr_string_view 201811L 375fe6060f1SDimitry Andric# define __cpp_lib_constexpr_tuple 201811L 376e8d8bef9SDimitry Andric# define __cpp_lib_constexpr_utility 201811L 377bdd1243dSDimitry Andric# define __cpp_lib_constexpr_vector 201907L 378349cc55cSDimitry Andric# define __cpp_lib_coroutine 201902L 37906c3fb27SDimitry Andric# if _LIBCPP_STD_VER >= 20 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L 3800b57cec5SDimitry Andric# define __cpp_lib_destroying_delete 201806L 3810b57cec5SDimitry Andric# endif 382480093f4SDimitry Andric# define __cpp_lib_endian 201907L 3835ffd83dbSDimitry Andric# define __cpp_lib_erase_if 202002L 384e8d8bef9SDimitry Andric# undef __cpp_lib_execution 385e8d8bef9SDimitry Andric// # define __cpp_lib_execution 201902L 3866246ae0bSDimitry Andric// # define __cpp_lib_format 202106L 3875f757f3fSDimitry Andric# define __cpp_lib_format_uchar 202311L 388e8d8bef9SDimitry Andric# define __cpp_lib_generic_unordered_lookup 201811L 389e8d8bef9SDimitry Andric# define __cpp_lib_int_pow2 202002L 390fe6060f1SDimitry Andric# define __cpp_lib_integer_comparison_functions 202002L 3910b57cec5SDimitry Andric# define __cpp_lib_interpolate 201902L 3920b57cec5SDimitry Andric# define __cpp_lib_is_constant_evaluated 201811L 393e8d8bef9SDimitry Andric// # define __cpp_lib_is_layout_compatible 201907L 394e8d8bef9SDimitry Andric# define __cpp_lib_is_nothrow_convertible 201806L 395e8d8bef9SDimitry Andric// # define __cpp_lib_is_pointer_interconvertible 201907L 3965f757f3fSDimitry Andric# if !defined(_LIBCPP_HAS_NO_THREADS) && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN) && _LIBCPP_AVAILABILITY_HAS_SYNC 3975f757f3fSDimitry Andric# define __cpp_lib_jthread 201911L 398e8d8bef9SDimitry Andric# endif 3995f757f3fSDimitry Andric# if !defined(_LIBCPP_HAS_NO_THREADS) && _LIBCPP_AVAILABILITY_HAS_SYNC 400e8d8bef9SDimitry Andric# define __cpp_lib_latch 201907L 401e8d8bef9SDimitry Andric# endif 4025ffd83dbSDimitry Andric# define __cpp_lib_list_remove_return_type 201806L 4035ffd83dbSDimitry Andric# define __cpp_lib_math_constants 201907L 40406c3fb27SDimitry Andric# define __cpp_lib_move_iterator_concept 202207L 4055f757f3fSDimitry Andric# if _LIBCPP_AVAILABILITY_HAS_PMR 406bdd1243dSDimitry Andric# define __cpp_lib_polymorphic_allocator 201902L 40706c3fb27SDimitry Andric# endif 40806c3fb27SDimitry Andric# define __cpp_lib_ranges 202207L 409e8d8bef9SDimitry Andric# define __cpp_lib_remove_cvref 201711L 4105f757f3fSDimitry Andric# if !defined(_LIBCPP_HAS_NO_THREADS) && _LIBCPP_AVAILABILITY_HAS_SYNC 411e8d8bef9SDimitry Andric# define __cpp_lib_semaphore 201907L 412e8d8bef9SDimitry Andric# endif 41381ad6265SDimitry Andric# undef __cpp_lib_shared_ptr_arrays 41481ad6265SDimitry Andric# define __cpp_lib_shared_ptr_arrays 201707L 415e8d8bef9SDimitry Andric# define __cpp_lib_shift 201806L 416e8d8bef9SDimitry Andric// # define __cpp_lib_smart_ptr_for_overwrite 202002L 417bdd1243dSDimitry Andric# define __cpp_lib_source_location 201907L 4185ffd83dbSDimitry Andric# define __cpp_lib_span 202002L 419e8d8bef9SDimitry Andric# define __cpp_lib_ssize 201902L 420e8d8bef9SDimitry Andric# define __cpp_lib_starts_ends_with 201711L 421e8d8bef9SDimitry Andric# undef __cpp_lib_string_view 422e8d8bef9SDimitry Andric# define __cpp_lib_string_view 201803L 4235f757f3fSDimitry Andric# if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_SYNCSTREAM) 4245f757f3fSDimitry Andric# define __cpp_lib_syncbuf 201803L 4255f757f3fSDimitry Andric# endif 426e8d8bef9SDimitry Andric// # define __cpp_lib_three_way_comparison 201907L 427e8d8bef9SDimitry Andric# define __cpp_lib_to_address 201711L 4285ffd83dbSDimitry Andric# define __cpp_lib_to_array 201907L 42904eeddc0SDimitry Andric# define __cpp_lib_type_identity 201806L 430e8d8bef9SDimitry Andric# define __cpp_lib_unwrap_ref 201811L 431e8d8bef9SDimitry Andric#endif 432e8d8bef9SDimitry Andric 43306c3fb27SDimitry Andric#if _LIBCPP_STD_VER >= 23 43404eeddc0SDimitry Andric# define __cpp_lib_adaptor_iterator_pair_constructor 202106L 43581ad6265SDimitry Andric# define __cpp_lib_allocate_at_least 202106L 43604eeddc0SDimitry Andric// # define __cpp_lib_associative_heterogeneous_erasure 202110L 43781ad6265SDimitry Andric// # define __cpp_lib_bind_back 202202L 4384824e7fdSDimitry Andric# define __cpp_lib_byteswap 202110L 439bdd1243dSDimitry Andric# define __cpp_lib_constexpr_bitset 202207L 440bdd1243dSDimitry Andric# define __cpp_lib_constexpr_charconv 202207L 44181ad6265SDimitry Andric// # define __cpp_lib_constexpr_cmath 202202L 442bdd1243dSDimitry Andric# undef __cpp_lib_constexpr_memory 443bdd1243dSDimitry Andric# define __cpp_lib_constexpr_memory 202202L 44406c3fb27SDimitry Andric# define __cpp_lib_constexpr_typeinfo 202106L 44506c3fb27SDimitry Andric# define __cpp_lib_expected 202211L 44606c3fb27SDimitry Andric# define __cpp_lib_format_ranges 202207L 44706c3fb27SDimitry Andric// # define __cpp_lib_formatters 202302L 448bdd1243dSDimitry Andric# define __cpp_lib_forward_like 202207L 44906c3fb27SDimitry Andric# define __cpp_lib_invoke_r 202106L 4505f757f3fSDimitry Andric# define __cpp_lib_ios_noreplace 202207L 451e8d8bef9SDimitry Andric# define __cpp_lib_is_scoped_enum 202011L 4525f757f3fSDimitry Andric# define __cpp_lib_mdspan 202207L 45304eeddc0SDimitry Andric// # define __cpp_lib_move_only_function 202110L 45481ad6265SDimitry Andric# undef __cpp_lib_optional 45581ad6265SDimitry Andric# define __cpp_lib_optional 202110L 45604eeddc0SDimitry Andric// # define __cpp_lib_out_ptr 202106L 457*cb14a3feSDimitry Andric# define __cpp_lib_print 202207L 4585f757f3fSDimitry Andric// # define __cpp_lib_ranges_as_const 202207L 4591ac55f4cSDimitry Andric# define __cpp_lib_ranges_as_rvalue 202207L 46081ad6265SDimitry Andric// # define __cpp_lib_ranges_chunk 202202L 4615f757f3fSDimitry Andric# define __cpp_lib_ranges_chunk_by 202202L 46281ad6265SDimitry Andric// # define __cpp_lib_ranges_iota 202202L 46381ad6265SDimitry Andric// # define __cpp_lib_ranges_join_with 202202L 46406c3fb27SDimitry Andric# define __cpp_lib_ranges_repeat 202207L 46581ad6265SDimitry Andric// # define __cpp_lib_ranges_slide 202202L 46604eeddc0SDimitry Andric// # define __cpp_lib_ranges_starts_ends_with 202106L 46706c3fb27SDimitry Andric# define __cpp_lib_ranges_to_container 202202L 46804eeddc0SDimitry Andric// # define __cpp_lib_ranges_zip 202110L 46981ad6265SDimitry Andric// # define __cpp_lib_reference_from_temporary 202202L 47004eeddc0SDimitry Andric// # define __cpp_lib_spanstream 202106L 471e8d8bef9SDimitry Andric// # define __cpp_lib_stacktrace 202011L 47281ad6265SDimitry Andric# define __cpp_lib_stdatomic_h 202011L 473e8d8bef9SDimitry Andric# define __cpp_lib_string_contains 202011L 47404eeddc0SDimitry Andric# define __cpp_lib_string_resize_and_overwrite 202110L 47506c3fb27SDimitry Andric// # define __cpp_lib_to_string 202306L 476fe6060f1SDimitry Andric# define __cpp_lib_to_underlying 202102L 4775f757f3fSDimitry Andric// # define __cpp_lib_tuple_like 202207L 47881ad6265SDimitry Andric# define __cpp_lib_unreachable 202202L 4790b57cec5SDimitry Andric#endif 4800b57cec5SDimitry Andric 48106c3fb27SDimitry Andric#if _LIBCPP_STD_VER >= 26 48206c3fb27SDimitry Andric// # define __cpp_lib_associative_heterogeneous_insertion 202306L 48306c3fb27SDimitry Andric# undef __cpp_lib_bind_back 48406c3fb27SDimitry Andric// # define __cpp_lib_bind_back 202306L 48506c3fb27SDimitry Andric# undef __cpp_lib_bind_front 48606c3fb27SDimitry Andric# define __cpp_lib_bind_front 202306L 4875f757f3fSDimitry Andric# define __cpp_lib_bitset 202306L 48806c3fb27SDimitry Andric// # define __cpp_lib_copyable_function 202306L 4895f757f3fSDimitry Andric// # define __cpp_lib_debugging 202311L 4905f757f3fSDimitry Andric// # define __cpp_lib_freestanding_algorithm 202311L 4915f757f3fSDimitry Andric// # define __cpp_lib_freestanding_array 202311L 4925f757f3fSDimitry Andric// # define __cpp_lib_freestanding_cstring 202306L 4935f757f3fSDimitry Andric// # define __cpp_lib_freestanding_expected 202311L 4945f757f3fSDimitry Andric// # define __cpp_lib_freestanding_mdspan 202311L 4955f757f3fSDimitry Andric// # define __cpp_lib_freestanding_optional 202311L 4965f757f3fSDimitry Andric// # define __cpp_lib_freestanding_string_view 202311L 4975f757f3fSDimitry Andric// # define __cpp_lib_freestanding_variant 202311L 49806c3fb27SDimitry Andric// # define __cpp_lib_fstream_native_handle 202306L 49906c3fb27SDimitry Andric// # define __cpp_lib_function_ref 202306L 50006c3fb27SDimitry Andric// # define __cpp_lib_hazard_pointer 202306L 5015f757f3fSDimitry Andric// # define __cpp_lib_linalg 202311L 5025f757f3fSDimitry Andric# undef __cpp_lib_out_ptr 5035f757f3fSDimitry Andric// # define __cpp_lib_out_ptr 202311L 50406c3fb27SDimitry Andric# define __cpp_lib_ratio 202306L 50506c3fb27SDimitry Andric// # define __cpp_lib_rcu 202306L 5065f757f3fSDimitry Andric// # define __cpp_lib_saturation_arithmetic 202311L 50706c3fb27SDimitry Andric// # define __cpp_lib_smart_ptr_owner_equality 202306L 5085f757f3fSDimitry Andric// # define __cpp_lib_span_initializer_list 202311L 50906c3fb27SDimitry Andric// # define __cpp_lib_sstream_from_string_view 202306L 51006c3fb27SDimitry Andric// # define __cpp_lib_submdspan 202306L 51106c3fb27SDimitry Andric// # define __cpp_lib_text_encoding 202306L 5125f757f3fSDimitry Andric# undef __cpp_lib_to_chars 5135f757f3fSDimitry Andric// # define __cpp_lib_to_chars 202306L 5145f757f3fSDimitry Andric# undef __cpp_lib_tuple_like 5155f757f3fSDimitry Andric// # define __cpp_lib_tuple_like 202311L 51606c3fb27SDimitry Andric// # define __cpp_lib_within_lifetime 202306L 51706c3fb27SDimitry Andric#endif 51806c3fb27SDimitry Andric 519fe6060f1SDimitry Andric// clang-format on 520fe6060f1SDimitry Andric 5210b57cec5SDimitry Andric#endif // _LIBCPP_VERSIONH 522