2021-10-01 08:59:24 -08:00
|
|
|
// -*- C++ -*-
|
2021-10-04 09:34:26 -08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2018-04-03 07:48:24 -08:00
|
|
|
//
|
2019-01-19 01:56:40 -09:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2018-04-03 07:48:24 -08:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#ifndef _LIBCPP_VERSIONH
|
|
|
|
|
#define _LIBCPP_VERSIONH
|
|
|
|
|
|
|
|
|
|
/*
|
2019-01-15 16:37:43 -09:00
|
|
|
version synopsis
|
2018-04-03 07:48:24 -08:00
|
|
|
|
2019-01-15 16:37:43 -09:00
|
|
|
Macro name Value Headers
|
2022-01-06 02:36:07 -09:00
|
|
|
__cpp_lib_adaptor_iterator_pair_constructor 202106L <queue> <stack>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_addressof_constexpr 201603L <memory>
|
2025-04-14 13:33:57 -08:00
|
|
|
__cpp_lib_aligned_accessor 202411L <mdspan>
|
2024-02-01 02:31:25 -09:00
|
|
|
__cpp_lib_allocate_at_least 202302L <memory>
|
2021-01-07 14:04:41 -09:00
|
|
|
__cpp_lib_allocator_traits_is_always_equal 201411L <deque> <forward_list> <list>
|
|
|
|
|
<map> <memory> <scoped_allocator>
|
|
|
|
|
<set> <string> <unordered_map>
|
|
|
|
|
<unordered_set> <vector>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_any 201606L <any>
|
|
|
|
|
__cpp_lib_apply 201603L <tuple>
|
2021-01-07 14:04:41 -09:00
|
|
|
__cpp_lib_array_constexpr 201811L <array> <iterator>
|
2020-05-22 05:59:48 -08:00
|
|
|
201603L // C++17
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_as_const 201510L <utility>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_associative_heterogeneous_erasure 202110L <map> <set> <unordered_map>
|
|
|
|
|
<unordered_set>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_associative_heterogeneous_insertion 202306L <map> <set> <unordered_map>
|
|
|
|
|
<unordered_set>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_assume_aligned 201811L <memory>
|
2020-09-09 09:00:09 -08:00
|
|
|
__cpp_lib_atomic_flag_test 201907L <atomic>
|
|
|
|
|
__cpp_lib_atomic_float 201711L <atomic>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_atomic_is_always_lock_free 201603L <atomic>
|
2020-09-09 09:00:09 -08:00
|
|
|
__cpp_lib_atomic_lock_free_type_aliases 201907L <atomic>
|
2024-04-03 04:21:11 -08:00
|
|
|
__cpp_lib_atomic_min_max 202403L <atomic>
|
2026-04-11 22:56:35 -08:00
|
|
|
__cpp_lib_atomic_ref 202603L <atomic>
|
2025-10-13 04:27:02 -08:00
|
|
|
201806L // C++20
|
2020-09-09 09:00:09 -08:00
|
|
|
__cpp_lib_atomic_shared_ptr 201711L <atomic>
|
|
|
|
|
__cpp_lib_atomic_value_initialization 201911L <atomic> <memory>
|
|
|
|
|
__cpp_lib_atomic_wait 201907L <atomic>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_barrier 201907L <barrier>
|
2024-04-09 07:10:20 -08:00
|
|
|
__cpp_lib_bind_back 202202L <functional>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_bind_front 202306L <functional>
|
|
|
|
|
201907L // C++20
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_bit_cast 201806L <bit>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_bitops 201907L <bit>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_bitset 202306L <bitset>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_bool_constant 201505L <type_traits>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_bounded_array_traits 201902L <type_traits>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_boyer_moore_searcher 201603L <functional>
|
|
|
|
|
__cpp_lib_byte 201603L <cstddef>
|
2021-11-21 14:22:55 -09:00
|
|
|
__cpp_lib_byteswap 202110L <bit>
|
2022-07-18 16:03:10 -08:00
|
|
|
__cpp_lib_char8_t 201907L <atomic> <filesystem> <istream>
|
2019-01-15 16:37:43 -09:00
|
|
|
<limits> <locale> <ostream>
|
|
|
|
|
<string> <string_view>
|
|
|
|
|
__cpp_lib_chrono 201611L <chrono>
|
|
|
|
|
__cpp_lib_chrono_udls 201304L <chrono>
|
|
|
|
|
__cpp_lib_clamp 201603L <algorithm>
|
2025-07-06 08:32:59 -08:00
|
|
|
__cpp_lib_common_reference 202302L <type_traits>
|
|
|
|
|
__cpp_lib_common_reference_wrapper 202302L <functional>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_complex_udls 201309L <complex>
|
2025-12-19 00:56:32 -09:00
|
|
|
__cpp_lib_concepts 202207L <concepts>
|
2026-06-22 09:17:53 -08:00
|
|
|
__cpp_lib_constant_wrapper 202606L <utility>
|
2025-03-20 15:33:52 -08:00
|
|
|
__cpp_lib_constexpr_algorithms 202306L <algorithm> <utility>
|
|
|
|
|
201806L // C++20
|
2022-08-13 03:52:35 -08:00
|
|
|
__cpp_lib_constexpr_bitset 202207L <bitset>
|
2022-08-06 00:47:53 -08:00
|
|
|
__cpp_lib_constexpr_charconv 202207L <charconv>
|
2022-02-08 14:07:14 -09:00
|
|
|
__cpp_lib_constexpr_cmath 202202L <cmath> <cstdlib>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_constexpr_complex 201711L <complex>
|
2020-09-17 08:06:13 -08:00
|
|
|
__cpp_lib_constexpr_dynamic_alloc 201907L <memory>
|
2025-11-01 00:51:35 -08:00
|
|
|
__cpp_lib_constexpr_flat_map 202502L <flat_map>
|
|
|
|
|
__cpp_lib_constexpr_flat_set 202502L <flat_set>
|
2025-06-11 08:13:36 -08:00
|
|
|
__cpp_lib_constexpr_forward_list 202502L <forward_list>
|
2020-12-25 10:48:39 -09:00
|
|
|
__cpp_lib_constexpr_functional 201907L <functional>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_constexpr_iterator 201811L <iterator>
|
2025-06-18 08:13:50 -08:00
|
|
|
__cpp_lib_constexpr_list 202502L <list>
|
2026-06-02 23:59:57 -08:00
|
|
|
__cpp_lib_constexpr_map 202502L <map>
|
2022-09-03 03:49:50 -08:00
|
|
|
__cpp_lib_constexpr_memory 202202L <memory>
|
|
|
|
|
201811L // C++20
|
2024-07-08 09:35:31 -08:00
|
|
|
__cpp_lib_constexpr_new 202406L <new>
|
2020-11-28 04:50:53 -09:00
|
|
|
__cpp_lib_constexpr_numeric 201911L <numeric>
|
2025-06-04 03:58:25 -08:00
|
|
|
__cpp_lib_constexpr_queue 202502L <queue>
|
2026-06-30 15:20:25 -08:00
|
|
|
__cpp_lib_constexpr_set 202502L <set>
|
[libc++] Implement P0980R1 (constexpr std::string)
Reviewed By: #libc, ldionne
Spies: daltenty, sdasgup3, ldionne, arichardson, MTC, ChuanqiXu, mehdi_amini, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes, tatianashp, rdzhabarov, teijeong, cota, dcaballe, Chia-hungDuan, wrengr, wenzhicui, arphaman, Mordante, miscco, Quuxplusone, smeenai, libcxx-commits
Differential Revision: https://reviews.llvm.org/D110598
2022-04-27 00:11:44 -08:00
|
|
|
__cpp_lib_constexpr_string 201907L <string>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_constexpr_string_view 201811L <string_view>
|
|
|
|
|
__cpp_lib_constexpr_tuple 201811L <tuple>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_constexpr_typeinfo 202106L <typeinfo>
|
2020-09-02 11:20:33 -08:00
|
|
|
__cpp_lib_constexpr_utility 201811L <utility>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_constexpr_vector 201907L <vector>
|
2025-06-20 08:36:46 -08:00
|
|
|
__cpp_lib_constrained_equality 202411L <expected> <optional> <tuple>
|
|
|
|
|
<utility> <variant>
|
2024-05-04 08:23:49 -08:00
|
|
|
__cpp_lib_containers_ranges 202202L <deque> <forward_list> <list>
|
|
|
|
|
<map> <queue> <set>
|
|
|
|
|
<stack> <string> <unordered_map>
|
|
|
|
|
<unordered_set> <vector>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_copyable_function 202306L <functional>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_coroutine 201902L <coroutine>
|
2023-11-16 00:17:19 -09:00
|
|
|
__cpp_lib_debugging 202311L <debugging>
|
2024-04-03 04:21:11 -08:00
|
|
|
__cpp_lib_default_template_type_for_algorithm_values 202403L <algorithm> <deque> <forward_list>
|
|
|
|
|
<list> <ranges> <string>
|
|
|
|
|
<vector>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_destroying_delete 201806L <new>
|
|
|
|
|
__cpp_lib_enable_shared_from_this 201603L <memory>
|
2019-11-14 04:54:23 -09:00
|
|
|
__cpp_lib_endian 201907L <bit>
|
2021-01-07 14:04:41 -09:00
|
|
|
__cpp_lib_erase_if 202002L <deque> <forward_list> <list>
|
|
|
|
|
<map> <set> <string>
|
|
|
|
|
<unordered_map> <unordered_set> <vector>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_exchange_function 201304L <utility>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_execution 201902L <execution>
|
|
|
|
|
201603L // C++17
|
2026-06-25 15:52:00 -08:00
|
|
|
__cpp_lib_expected 202211L <expected>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_filesystem 201703L <filesystem>
|
2025-12-20 12:18:44 -09:00
|
|
|
__cpp_lib_flat_map 202511L <flat_map>
|
2026-01-19 11:27:56 -09:00
|
|
|
__cpp_lib_flat_set 202511L <flat_set>
|
2024-07-10 07:52:43 -08:00
|
|
|
__cpp_lib_format 202110L <format>
|
2024-04-03 04:21:11 -08:00
|
|
|
__cpp_lib_format_path 202403L <filesystem>
|
2023-04-09 03:24:21 -08:00
|
|
|
__cpp_lib_format_ranges 202207L <format>
|
2023-12-18 02:43:10 -09:00
|
|
|
__cpp_lib_format_uchar 202311L <format>
|
2023-02-18 08:30:56 -09:00
|
|
|
__cpp_lib_formatters 202302L <stacktrace> <thread>
|
2022-08-21 07:21:08 -08:00
|
|
|
__cpp_lib_forward_like 202207L <utility>
|
2023-11-16 00:17:19 -09:00
|
|
|
__cpp_lib_freestanding_algorithm 202311L <algorithm>
|
|
|
|
|
__cpp_lib_freestanding_array 202311L <array>
|
|
|
|
|
__cpp_lib_freestanding_cstring 202306L <cstring>
|
|
|
|
|
__cpp_lib_freestanding_expected 202311L <expected>
|
|
|
|
|
__cpp_lib_freestanding_mdspan 202311L <mdspan>
|
|
|
|
|
__cpp_lib_freestanding_optional 202311L <optional>
|
|
|
|
|
__cpp_lib_freestanding_string_view 202311L <string_view>
|
|
|
|
|
__cpp_lib_freestanding_variant 202311L <variant>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_fstream_native_handle 202306L <fstream>
|
2026-07-25 08:44:55 -08:00
|
|
|
__cpp_lib_function_ref 202603L <functional>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_gcd_lcm 201606L <numeric>
|
2024-04-03 04:21:11 -08:00
|
|
|
__cpp_lib_generate_random 202403L <random>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_generic_associative_lookup 201304L <map> <set>
|
|
|
|
|
__cpp_lib_generic_unordered_lookup 201811L <unordered_map> <unordered_set>
|
|
|
|
|
__cpp_lib_hardware_interference_size 201703L <new>
|
|
|
|
|
__cpp_lib_has_unique_object_representations 201606L <type_traits>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_hazard_pointer 202306L <hazard_pointer>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_hypot 201603L <cmath>
|
|
|
|
|
__cpp_lib_incomplete_container_elements 201505L <forward_list> <list> <vector>
|
2024-07-08 09:35:31 -08:00
|
|
|
__cpp_lib_inplace_vector 202406L <inplace_vector>
|
2020-11-24 04:50:49 -09:00
|
|
|
__cpp_lib_int_pow2 202002L <bit>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_integer_comparison_functions 202002L <utility>
|
2025-12-25 16:07:13 -09:00
|
|
|
__cpp_lib_integer_sequence 202511L <utility>
|
|
|
|
|
201304L // C++14
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_integral_constant_callable 201304L <type_traits>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_interpolate 201902L <cmath> <numeric>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_invoke 201411L <functional>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_invoke_r 202106L <functional>
|
2023-09-18 12:32:02 -08:00
|
|
|
__cpp_lib_ios_noreplace 202207L <ios>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_is_aggregate 201703L <type_traits>
|
|
|
|
|
__cpp_lib_is_constant_evaluated 201811L <type_traits>
|
|
|
|
|
__cpp_lib_is_final 201402L <type_traits>
|
2024-10-08 22:19:14 -08:00
|
|
|
__cpp_lib_is_implicit_lifetime 202302L <type_traits>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_is_invocable 201703L <type_traits>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_is_layout_compatible 201907L <type_traits>
|
|
|
|
|
__cpp_lib_is_nothrow_convertible 201806L <type_traits>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_is_null_pointer 201309L <type_traits>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_is_pointer_interconvertible 201907L <type_traits>
|
2021-01-08 08:40:42 -09:00
|
|
|
__cpp_lib_is_scoped_enum 202011L <type_traits>
|
2025-04-14 13:33:57 -08:00
|
|
|
__cpp_lib_is_sufficiently_aligned 202411L <memory>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_is_swappable 201603L <type_traits>
|
2024-07-08 09:35:31 -08:00
|
|
|
__cpp_lib_is_virtual_base_of 202406L <type_traits>
|
2024-05-15 23:45:45 -08:00
|
|
|
__cpp_lib_is_within_lifetime 202306L <type_traits>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_jthread 201911L <stop_token> <thread>
|
|
|
|
|
__cpp_lib_latch 201907L <latch>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_launder 201606L <new>
|
2023-11-16 00:17:19 -09:00
|
|
|
__cpp_lib_linalg 202311L <linalg>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_list_remove_return_type 201806L <forward_list> <list>
|
|
|
|
|
__cpp_lib_logical_traits 201510L <type_traits>
|
|
|
|
|
__cpp_lib_make_from_tuple 201606L <tuple>
|
|
|
|
|
__cpp_lib_make_reverse_iterator 201402L <iterator>
|
|
|
|
|
__cpp_lib_make_unique 201304L <memory>
|
|
|
|
|
__cpp_lib_map_try_emplace 201411L <map>
|
2020-06-18 23:13:33 -08:00
|
|
|
__cpp_lib_math_constants 201907L <numbers>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_math_special_functions 201603L <cmath>
|
2024-07-15 07:23:34 -08:00
|
|
|
__cpp_lib_mdspan 202406L <mdspan>
|
|
|
|
|
202207L // C++23
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_memory_resource 201603L <memory_resource>
|
2023-03-01 09:11:36 -09:00
|
|
|
__cpp_lib_move_iterator_concept 202207L <iterator>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_move_only_function 202110L <functional>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_node_extract 201606L <map> <set> <unordered_map>
|
|
|
|
|
<unordered_set>
|
2021-01-07 14:04:41 -09:00
|
|
|
__cpp_lib_nonmember_container_access 201411L <array> <deque> <forward_list>
|
|
|
|
|
<iterator> <list> <map>
|
2019-01-15 16:37:43 -09:00
|
|
|
<regex> <set> <string>
|
|
|
|
|
<unordered_map> <unordered_set> <vector>
|
2025-01-10 10:14:14 -09:00
|
|
|
__cpp_lib_not_fn 202306L <functional>
|
|
|
|
|
201603L // C++17
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_null_iterators 201304L <iterator>
|
2025-11-11 18:00:08 -09:00
|
|
|
__cpp_lib_optional 202506L <optional>
|
|
|
|
|
202110L // C++23
|
2024-10-25 15:38:52 -08:00
|
|
|
202106L // C++20
|
2022-05-17 09:15:18 -08:00
|
|
|
201606L // C++17
|
2024-07-08 09:35:31 -08:00
|
|
|
__cpp_lib_optional_range_support 202406L <optional>
|
2023-11-16 00:17:19 -09:00
|
|
|
__cpp_lib_out_ptr 202311L <memory>
|
|
|
|
|
202106L // C++23
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_parallel_algorithm 201603L <algorithm> <numeric>
|
2024-07-08 09:35:31 -08:00
|
|
|
__cpp_lib_philox_engine 202406L <random>
|
2022-01-22 11:24:53 -09:00
|
|
|
__cpp_lib_polymorphic_allocator 201902L <memory_resource>
|
2023-04-20 22:09:06 -08:00
|
|
|
__cpp_lib_print 202207L <ostream> <print>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_quoted_string_io 201304L <iomanip>
|
2024-08-28 04:55:44 -08:00
|
|
|
__cpp_lib_ranges 202406L <algorithm> <functional> <iterator>
|
2019-01-15 16:37:43 -09:00
|
|
|
<memory> <ranges>
|
2024-08-28 04:55:44 -08:00
|
|
|
202110L // C++20
|
2023-11-16 00:17:19 -09:00
|
|
|
__cpp_lib_ranges_as_const 202207L <ranges>
|
2023-02-25 00:26:28 -09:00
|
|
|
__cpp_lib_ranges_as_rvalue 202207L <ranges>
|
2022-02-08 14:07:14 -09:00
|
|
|
__cpp_lib_ranges_chunk 202202L <ranges>
|
|
|
|
|
__cpp_lib_ranges_chunk_by 202202L <ranges>
|
2024-04-03 04:21:11 -08:00
|
|
|
__cpp_lib_ranges_concat 202403L <ranges>
|
2024-02-29 15:06:32 -09:00
|
|
|
__cpp_lib_ranges_contains 202207L <algorithm>
|
2026-04-22 04:42:38 -08:00
|
|
|
__cpp_lib_ranges_enumerate 202302L <ranges>
|
2024-07-19 08:42:16 -08:00
|
|
|
__cpp_lib_ranges_find_last 202207L <algorithm>
|
2026-05-11 02:35:15 -08:00
|
|
|
__cpp_lib_ranges_fold 202207L <algorithm>
|
2025-10-06 07:13:25 -08:00
|
|
|
__cpp_lib_ranges_indices 202506L <ranges>
|
2022-02-08 14:07:14 -09:00
|
|
|
__cpp_lib_ranges_iota 202202L <numeric>
|
|
|
|
|
__cpp_lib_ranges_join_with 202202L <ranges>
|
2023-07-20 04:00:10 -08:00
|
|
|
__cpp_lib_ranges_repeat 202207L <ranges>
|
2022-02-08 14:07:14 -09:00
|
|
|
__cpp_lib_ranges_slide 202202L <ranges>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_ranges_starts_ends_with 202106L <algorithm>
|
2026-04-25 02:51:37 -08:00
|
|
|
__cpp_lib_ranges_stride 202207L <ranges>
|
2024-05-04 08:23:49 -08:00
|
|
|
__cpp_lib_ranges_to_container 202202L <ranges>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_ranges_zip 202110L <ranges> <tuple> <utility>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_ratio 202306L <ratio>
|
2026-06-12 17:56:56 -08:00
|
|
|
__cpp_lib_raw_memory_algorithms 202411L <memory>
|
|
|
|
|
201606L // C++17
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_rcu 202306L <rcu>
|
2022-02-08 14:07:14 -09:00
|
|
|
__cpp_lib_reference_from_temporary 202202L <type_traits>
|
2024-04-03 04:21:11 -08:00
|
|
|
__cpp_lib_reference_wrapper 202403L <functional>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_remove_cvref 201711L <type_traits>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_result_of_sfinae 201210L <functional> <type_traits>
|
|
|
|
|
__cpp_lib_robust_nonmodifying_seq_ops 201304L <algorithm>
|
|
|
|
|
__cpp_lib_sample 201603L <algorithm>
|
2026-04-12 06:21:12 -08:00
|
|
|
__cpp_lib_saturation_arithmetic 202603L <numeric>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_scoped_lock 201703L <mutex>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_semaphore 201907L <semaphore>
|
2024-07-08 09:35:31 -08:00
|
|
|
__cpp_lib_senders 202406L <execution>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_shared_mutex 201505L <shared_mutex>
|
2021-10-26 09:12:12 -08:00
|
|
|
__cpp_lib_shared_ptr_arrays 201707L <memory>
|
|
|
|
|
201611L // C++17
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_shared_ptr_weak_type 201606L <memory>
|
|
|
|
|
__cpp_lib_shared_timed_mutex 201402L <shared_mutex>
|
2026-02-14 08:34:44 -09:00
|
|
|
__cpp_lib_shift 202202L <algorithm>
|
|
|
|
|
201806L // C++20
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_smart_ptr_for_overwrite 202002L <memory>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_smart_ptr_owner_equality 202306L <memory>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_source_location 201907L <source_location>
|
2020-05-13 05:50:06 -08:00
|
|
|
__cpp_lib_span 202002L <span>
|
2024-01-05 00:41:22 -09:00
|
|
|
__cpp_lib_span_at 202311L <span>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_spanstream 202106L <spanstream>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_ssize 201902L <iterator>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_sstream_from_string_view 202306L <sstream>
|
2021-01-08 08:40:42 -09:00
|
|
|
__cpp_lib_stacktrace 202011L <stacktrace>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_starts_ends_with 201711L <string> <string_view>
|
2021-01-08 08:40:42 -09:00
|
|
|
__cpp_lib_stdatomic_h 202011L <stdatomic.h>
|
|
|
|
|
__cpp_lib_string_contains 202011L <string> <string_view>
|
2022-01-06 11:43:26 -09:00
|
|
|
__cpp_lib_string_resize_and_overwrite 202110L <string>
|
2025-09-24 16:08:15 -08:00
|
|
|
__cpp_lib_string_subview 202506L <string> <string_view>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_string_udls 201304L <string>
|
2024-07-18 02:26:37 -08:00
|
|
|
__cpp_lib_string_view 202403L <string> <string_view>
|
|
|
|
|
201803L // C++20
|
2021-01-07 14:21:07 -09:00
|
|
|
201606L // C++17
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_submdspan 202306L <mdspan>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_syncbuf 201803L <syncstream>
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_text_encoding 202306L <text_encoding>
|
2024-07-25 08:37:36 -08:00
|
|
|
__cpp_lib_three_way_comparison 201907L <compare>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_to_address 201711L <memory>
|
2020-01-30 03:27:35 -09:00
|
|
|
__cpp_lib_to_array 201907L <array>
|
2023-06-17 03:19:58 -08:00
|
|
|
__cpp_lib_to_chars 202306L <charconv>
|
|
|
|
|
201611L // C++17
|
2023-06-17 02:00:23 -08:00
|
|
|
__cpp_lib_to_string 202306L <string>
|
2021-03-04 23:19:39 -09:00
|
|
|
__cpp_lib_to_underlying 202102L <utility>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_transformation_trait_aliases 201304L <type_traits>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_transparent_operators 201510L <functional> <memory>
|
2019-01-15 16:37:43 -09:00
|
|
|
201210L // C++14
|
|
|
|
|
__cpp_lib_tuple_element_t 201402L <tuple>
|
2023-11-16 00:17:19 -09:00
|
|
|
__cpp_lib_tuple_like 202311L <map> <tuple> <unordered_map>
|
|
|
|
|
<utility>
|
|
|
|
|
202207L // C++23
|
2021-01-07 14:04:41 -09:00
|
|
|
__cpp_lib_tuples_by_type 201304L <tuple> <utility>
|
2021-12-30 19:28:12 -09:00
|
|
|
__cpp_lib_type_identity 201806L <type_traits>
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_type_trait_variable_templates 201510L <type_traits>
|
|
|
|
|
__cpp_lib_uncaught_exceptions 201411L <exception>
|
|
|
|
|
__cpp_lib_unordered_map_try_emplace 201411L <unordered_map>
|
2022-02-08 14:07:14 -09:00
|
|
|
__cpp_lib_unreachable 202202L <utility>
|
2021-01-07 14:21:07 -09:00
|
|
|
__cpp_lib_unwrap_ref 201811L <functional>
|
2024-10-25 15:38:52 -08:00
|
|
|
__cpp_lib_variant 202306L <variant>
|
|
|
|
|
202106L // C++20
|
|
|
|
|
202102L // C++17
|
2019-01-15 16:37:43 -09:00
|
|
|
__cpp_lib_void_t 201411L <type_traits>
|
2018-09-11 12:51:54 -08:00
|
|
|
|
2018-04-03 07:48:24 -08:00
|
|
|
*/
|
|
|
|
|
|
2024-12-21 03:01:48 -09:00
|
|
|
#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
|
|
|
|
|
# include <__cxx03/version>
|
|
|
|
|
#else
|
|
|
|
|
# include <__config>
|
2018-04-03 07:48:24 -08:00
|
|
|
|
2024-12-21 03:01:48 -09:00
|
|
|
# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
|
# pragma GCC system_header
|
|
|
|
|
# endif
|
2018-04-03 07:48:24 -08:00
|
|
|
|
2021-02-19 04:10:12 -09:00
|
|
|
// clang-format off
|
|
|
|
|
|
2023-02-13 14:56:09 -09:00
|
|
|
#if _LIBCPP_STD_VER >= 14
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_chrono_udls 201304L
|
|
|
|
|
# define __cpp_lib_complex_udls 201309L
|
|
|
|
|
# define __cpp_lib_exchange_function 201304L
|
|
|
|
|
# define __cpp_lib_generic_associative_lookup 201304L
|
|
|
|
|
# define __cpp_lib_integer_sequence 201304L
|
|
|
|
|
# define __cpp_lib_integral_constant_callable 201304L
|
|
|
|
|
# define __cpp_lib_is_final 201402L
|
|
|
|
|
# define __cpp_lib_is_null_pointer 201309L
|
|
|
|
|
# define __cpp_lib_make_reverse_iterator 201402L
|
|
|
|
|
# define __cpp_lib_make_unique 201304L
|
|
|
|
|
# define __cpp_lib_null_iterators 201304L
|
2024-11-06 00:39:19 -09:00
|
|
|
# if _LIBCPP_HAS_LOCALIZATION
|
2024-02-05 07:05:46 -09:00
|
|
|
# define __cpp_lib_quoted_string_io 201304L
|
|
|
|
|
# endif
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_result_of_sfinae 201210L
|
|
|
|
|
# define __cpp_lib_robust_nonmodifying_seq_ops 201304L
|
2024-11-06 00:39:19 -09:00
|
|
|
# if _LIBCPP_HAS_THREADS
|
2019-01-15 17:10:28 -09:00
|
|
|
# define __cpp_lib_shared_timed_mutex 201402L
|
|
|
|
|
# endif
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_string_udls 201304L
|
|
|
|
|
# define __cpp_lib_transformation_trait_aliases 201304L
|
|
|
|
|
# define __cpp_lib_transparent_operators 201210L
|
|
|
|
|
# define __cpp_lib_tuple_element_t 201402L
|
|
|
|
|
# define __cpp_lib_tuples_by_type 201304L
|
2018-09-12 11:41:40 -08:00
|
|
|
#endif
|
|
|
|
|
|
2023-02-13 14:56:09 -09:00
|
|
|
#if _LIBCPP_STD_VER >= 17
|
2021-08-11 06:34:51 -08:00
|
|
|
# define __cpp_lib_addressof_constexpr 201603L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_allocator_traits_is_always_equal 201411L
|
|
|
|
|
# define __cpp_lib_any 201606L
|
|
|
|
|
# define __cpp_lib_apply 201603L
|
|
|
|
|
# define __cpp_lib_array_constexpr 201603L
|
|
|
|
|
# define __cpp_lib_as_const 201510L
|
2021-11-17 06:59:31 -09:00
|
|
|
# define __cpp_lib_atomic_is_always_lock_free 201603L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_bool_constant 201505L
|
2022-06-17 06:02:53 -08:00
|
|
|
# define __cpp_lib_boyer_moore_searcher 201603L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_byte 201603L
|
|
|
|
|
# define __cpp_lib_chrono 201611L
|
|
|
|
|
# define __cpp_lib_clamp 201603L
|
|
|
|
|
# define __cpp_lib_enable_shared_from_this 201603L
|
|
|
|
|
// # define __cpp_lib_execution 201603L
|
2025-10-08 22:46:02 -08:00
|
|
|
# if _LIBCPP_HAS_FILESYSTEM
|
2021-01-19 09:04:01 -09:00
|
|
|
# define __cpp_lib_filesystem 201703L
|
|
|
|
|
# endif
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_gcd_lcm 201606L
|
2026-01-06 07:17:18 -09:00
|
|
|
# define __cpp_lib_hardware_interference_size 201703L
|
2021-08-10 07:35:27 -08:00
|
|
|
# define __cpp_lib_has_unique_object_representations 201606L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_hypot 201603L
|
|
|
|
|
# define __cpp_lib_incomplete_container_elements 201505L
|
2018-09-12 11:41:40 -08:00
|
|
|
# define __cpp_lib_invoke 201411L
|
2021-08-10 08:44:20 -08:00
|
|
|
# define __cpp_lib_is_aggregate 201703L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_is_invocable 201703L
|
|
|
|
|
# define __cpp_lib_is_swappable 201603L
|
|
|
|
|
# define __cpp_lib_launder 201606L
|
|
|
|
|
# define __cpp_lib_logical_traits 201510L
|
|
|
|
|
# define __cpp_lib_make_from_tuple 201606L
|
|
|
|
|
# define __cpp_lib_map_try_emplace 201411L
|
|
|
|
|
// # define __cpp_lib_math_special_functions 201603L
|
2023-11-24 13:45:17 -09:00
|
|
|
# if _LIBCPP_AVAILABILITY_HAS_PMR
|
2023-03-29 12:48:20 -08:00
|
|
|
# define __cpp_lib_memory_resource 201603L
|
|
|
|
|
# endif
|
2018-10-31 09:31:35 -08:00
|
|
|
# define __cpp_lib_node_extract 201606L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_nonmember_container_access 201411L
|
|
|
|
|
# define __cpp_lib_not_fn 201603L
|
|
|
|
|
# define __cpp_lib_optional 201606L
|
|
|
|
|
// # define __cpp_lib_parallel_algorithm 201603L
|
|
|
|
|
# define __cpp_lib_raw_memory_algorithms 201606L
|
|
|
|
|
# define __cpp_lib_sample 201603L
|
2024-11-06 00:39:19 -09:00
|
|
|
# if _LIBCPP_HAS_THREADS
|
2024-02-05 07:05:46 -09:00
|
|
|
# define __cpp_lib_scoped_lock 201703L
|
|
|
|
|
# endif
|
2024-11-06 00:39:19 -09:00
|
|
|
# if _LIBCPP_HAS_THREADS
|
2019-01-15 17:10:28 -09:00
|
|
|
# define __cpp_lib_shared_mutex 201505L
|
|
|
|
|
# endif
|
2020-12-08 11:45:57 -09:00
|
|
|
# define __cpp_lib_shared_ptr_arrays 201611L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_shared_ptr_weak_type 201606L
|
|
|
|
|
# define __cpp_lib_string_view 201606L
|
|
|
|
|
// # define __cpp_lib_to_chars 201611L
|
|
|
|
|
# undef __cpp_lib_transparent_operators
|
|
|
|
|
# define __cpp_lib_transparent_operators 201510L
|
|
|
|
|
# define __cpp_lib_type_trait_variable_templates 201510L
|
|
|
|
|
# define __cpp_lib_uncaught_exceptions 201411L
|
|
|
|
|
# define __cpp_lib_unordered_map_try_emplace 201411L
|
2021-03-25 09:09:11 -08:00
|
|
|
# define __cpp_lib_variant 202102L
|
2019-01-15 16:37:43 -09:00
|
|
|
# define __cpp_lib_void_t 201411L
|
2018-09-12 11:41:40 -08:00
|
|
|
#endif
|
|
|
|
|
|
2023-02-13 14:56:09 -09:00
|
|
|
#if _LIBCPP_STD_VER >= 20
|
2020-05-22 05:59:48 -08:00
|
|
|
# undef __cpp_lib_array_constexpr
|
|
|
|
|
# define __cpp_lib_array_constexpr 201811L
|
2022-02-03 10:45:22 -09:00
|
|
|
# define __cpp_lib_assume_aligned 201811L
|
2021-11-17 06:59:31 -09:00
|
|
|
# define __cpp_lib_atomic_flag_test 201907L
|
2025-02-18 16:06:51 -09:00
|
|
|
# define __cpp_lib_atomic_float 201711L
|
2021-11-17 06:59:31 -09:00
|
|
|
# define __cpp_lib_atomic_lock_free_type_aliases 201907L
|
2024-07-09 07:08:29 -08:00
|
|
|
# define __cpp_lib_atomic_ref 201806L
|
2021-11-17 06:59:31 -09:00
|
|
|
// # define __cpp_lib_atomic_shared_ptr 201711L
|
|
|
|
|
# define __cpp_lib_atomic_value_initialization 201911L
|
2025-10-08 22:46:02 -08:00
|
|
|
# define __cpp_lib_atomic_wait 201907L
|
|
|
|
|
# if _LIBCPP_HAS_THREADS
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_barrier 201907L
|
|
|
|
|
# endif
|
2021-03-02 15:17:22 -09:00
|
|
|
# define __cpp_lib_bind_front 201907L
|
2020-05-28 10:28:38 -08:00
|
|
|
# define __cpp_lib_bit_cast 201806L
|
2023-06-18 02:35:44 -08:00
|
|
|
# define __cpp_lib_bitops 201907L
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_bounded_array_traits 201902L
|
2024-10-11 23:49:52 -08:00
|
|
|
# if _LIBCPP_HAS_CHAR8_T
|
2022-07-18 16:03:10 -08:00
|
|
|
# define __cpp_lib_char8_t 201907L
|
2019-01-15 16:37:43 -09:00
|
|
|
# endif
|
2025-07-06 08:32:59 -08:00
|
|
|
# define __cpp_lib_common_reference 202302L
|
|
|
|
|
# define __cpp_lib_common_reference_wrapper 202302L
|
2025-12-19 00:56:32 -09:00
|
|
|
# define __cpp_lib_concepts 202207L
|
2020-12-20 11:21:42 -09:00
|
|
|
# define __cpp_lib_constexpr_algorithms 201806L
|
[libc++] [C++20] [P0415] Constexpr for std::complex.
This patch adds constexpr to <complex> header: operators, member operators, and member functions (real, imag, norm, conj).
https://eel.is/c++draft/complex.numbers
https://wg21.link/p0415
Reviewed By: ldionne, #libc
Spies: philnik, danilaml, Quuxplusone, wmaxey, arichardson, libcxx-commits
Differential Revision: https://reviews.llvm.org/D79555
2022-12-14 16:19:59 -09:00
|
|
|
# define __cpp_lib_constexpr_complex 201711L
|
2020-09-17 08:06:13 -08:00
|
|
|
# define __cpp_lib_constexpr_dynamic_alloc 201907L
|
2021-01-08 13:28:19 -09:00
|
|
|
# define __cpp_lib_constexpr_functional 201907L
|
2021-02-09 15:12:16 -09:00
|
|
|
# define __cpp_lib_constexpr_iterator 201811L
|
2021-02-15 11:26:29 -09:00
|
|
|
# define __cpp_lib_constexpr_memory 201811L
|
2020-11-28 04:50:53 -09:00
|
|
|
# define __cpp_lib_constexpr_numeric 201911L
|
[libc++] Implement P0980R1 (constexpr std::string)
Reviewed By: #libc, ldionne
Spies: daltenty, sdasgup3, ldionne, arichardson, MTC, ChuanqiXu, mehdi_amini, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes, tatianashp, rdzhabarov, teijeong, cota, dcaballe, Chia-hungDuan, wrengr, wenzhicui, arphaman, Mordante, miscco, Quuxplusone, smeenai, libcxx-commits
Differential Revision: https://reviews.llvm.org/D110598
2022-04-27 00:11:44 -08:00
|
|
|
# define __cpp_lib_constexpr_string 201907L
|
2021-02-09 15:12:16 -09:00
|
|
|
# define __cpp_lib_constexpr_string_view 201811L
|
|
|
|
|
# define __cpp_lib_constexpr_tuple 201811L
|
2020-09-02 11:20:33 -08:00
|
|
|
# define __cpp_lib_constexpr_utility 201811L
|
2022-11-09 11:01:42 -09:00
|
|
|
# define __cpp_lib_constexpr_vector 201907L
|
2021-11-15 21:05:34 -09:00
|
|
|
# define __cpp_lib_coroutine 201902L
|
2026-03-19 11:17:00 -08:00
|
|
|
# if defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L
|
P0722R3: Implement library support for destroying delete
Summary:
This provides the `std::destroying_delete_t` declaration in C++2a and after. (Even when the compiler doesn't support the language feature).
However, the feature test macro `__cpp_lib_destroying_delete` is only defined when we have both language support and C++2a.
Reviewers: ldionne, ckennelly, serge-sans-paille, EricWF
Reviewed By: EricWF
Subscribers: dexonsmith, riccibruno, christof, jwakely, jdoerfert, mclow.lists, ldionne, libcxx-commits
Differential Revision: https://reviews.llvm.org/D55840
llvm-svn: 361572
2019-05-23 15:46:44 -08:00
|
|
|
# define __cpp_lib_destroying_delete 201806L
|
|
|
|
|
# endif
|
2019-11-14 04:54:23 -09:00
|
|
|
# define __cpp_lib_endian 201907L
|
2020-05-02 03:58:03 -08:00
|
|
|
# define __cpp_lib_erase_if 202002L
|
2021-01-07 14:21:07 -09:00
|
|
|
# undef __cpp_lib_execution
|
|
|
|
|
// # define __cpp_lib_execution 201902L
|
2025-02-14 08:27:54 -09:00
|
|
|
# if _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
|
|
|
|
|
# define __cpp_lib_format 202110L
|
|
|
|
|
# endif
|
2023-11-29 07:55:09 -09:00
|
|
|
# define __cpp_lib_format_uchar 202311L
|
2020-11-10 03:49:55 -09:00
|
|
|
# define __cpp_lib_generic_unordered_lookup 201811L
|
2020-11-24 04:50:49 -09:00
|
|
|
# define __cpp_lib_int_pow2 202002L
|
2022-03-12 06:46:57 -09:00
|
|
|
# define __cpp_lib_integer_comparison_functions 202002L
|
2019-04-25 04:11:43 -08:00
|
|
|
# define __cpp_lib_interpolate 201902L
|
2021-08-01 10:01:51 -08:00
|
|
|
# define __cpp_lib_is_constant_evaluated 201811L
|
2021-01-07 14:21:07 -09:00
|
|
|
// # define __cpp_lib_is_layout_compatible 201907L
|
|
|
|
|
# define __cpp_lib_is_nothrow_convertible 201806L
|
|
|
|
|
// # define __cpp_lib_is_pointer_interconvertible 201907L
|
2025-10-08 22:46:02 -08:00
|
|
|
# if _LIBCPP_HAS_THREADS
|
2023-06-21 08:40:07 -08:00
|
|
|
# define __cpp_lib_jthread 201911L
|
2021-01-07 14:21:07 -09:00
|
|
|
# endif
|
2025-10-08 22:46:02 -08:00
|
|
|
# if _LIBCPP_HAS_THREADS
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_latch 201907L
|
|
|
|
|
# endif
|
2019-11-14 13:20:24 -09:00
|
|
|
# define __cpp_lib_list_remove_return_type 201806L
|
2022-03-12 06:46:57 -09:00
|
|
|
# define __cpp_lib_math_constants 201907L
|
2023-03-01 09:11:36 -09:00
|
|
|
# define __cpp_lib_move_iterator_concept 202207L
|
2024-10-25 15:38:52 -08:00
|
|
|
# undef __cpp_lib_optional
|
|
|
|
|
# define __cpp_lib_optional 202106L
|
2023-11-24 13:45:17 -09:00
|
|
|
# if _LIBCPP_AVAILABILITY_HAS_PMR
|
2023-03-29 12:48:20 -08:00
|
|
|
# define __cpp_lib_polymorphic_allocator 201902L
|
|
|
|
|
# endif
|
2024-08-28 04:55:44 -08:00
|
|
|
# define __cpp_lib_ranges 202110L
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_remove_cvref 201711L
|
2025-10-08 22:46:02 -08:00
|
|
|
# if _LIBCPP_HAS_THREADS
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_semaphore 201907L
|
|
|
|
|
# endif
|
2021-10-26 09:12:12 -08:00
|
|
|
# undef __cpp_lib_shared_ptr_arrays
|
|
|
|
|
# define __cpp_lib_shared_ptr_arrays 201707L
|
2020-12-25 21:39:03 -09:00
|
|
|
# define __cpp_lib_shift 201806L
|
2024-11-04 20:27:40 -09:00
|
|
|
# define __cpp_lib_smart_ptr_for_overwrite 202002L
|
2023-12-06 05:04:06 -09:00
|
|
|
# define __cpp_lib_source_location 201907L
|
2020-05-13 05:50:06 -08:00
|
|
|
# define __cpp_lib_span 202002L
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_ssize 201902L
|
|
|
|
|
# define __cpp_lib_starts_ends_with 201711L
|
|
|
|
|
# undef __cpp_lib_string_view
|
|
|
|
|
# define __cpp_lib_string_view 201803L
|
2025-01-23 23:34:42 -09:00
|
|
|
# if _LIBCPP_HAS_EXPERIMENTAL_SYNCSTREAM
|
2023-09-05 10:10:38 -08:00
|
|
|
# define __cpp_lib_syncbuf 201803L
|
|
|
|
|
# endif
|
2024-07-25 08:37:36 -08:00
|
|
|
# define __cpp_lib_three_way_comparison 201907L
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_to_address 201711L
|
2020-05-13 05:50:06 -08:00
|
|
|
# define __cpp_lib_to_array 201907L
|
2021-12-30 19:28:12 -09:00
|
|
|
# define __cpp_lib_type_identity 201806L
|
2021-01-07 14:21:07 -09:00
|
|
|
# define __cpp_lib_unwrap_ref 201811L
|
2024-10-25 15:38:52 -08:00
|
|
|
# undef __cpp_lib_variant
|
|
|
|
|
# define __cpp_lib_variant 202106L
|
2018-09-12 11:41:40 -08:00
|
|
|
#endif
|
|
|
|
|
|
2023-02-13 14:56:09 -09:00
|
|
|
#if _LIBCPP_STD_VER >= 23
|
2022-01-06 02:36:07 -09:00
|
|
|
# define __cpp_lib_adaptor_iterator_pair_constructor 202106L
|
2024-02-01 02:31:25 -09:00
|
|
|
# define __cpp_lib_allocate_at_least 202302L
|
2021-12-30 19:28:12 -09:00
|
|
|
// # define __cpp_lib_associative_heterogeneous_erasure 202110L
|
2024-04-09 07:10:20 -08:00
|
|
|
# define __cpp_lib_bind_back 202202L
|
2021-11-21 14:22:55 -09:00
|
|
|
# define __cpp_lib_byteswap 202110L
|
2022-08-13 03:52:35 -08:00
|
|
|
# define __cpp_lib_constexpr_bitset 202207L
|
2022-08-06 00:47:53 -08:00
|
|
|
# define __cpp_lib_constexpr_charconv 202207L
|
2022-02-08 14:07:14 -09:00
|
|
|
// # define __cpp_lib_constexpr_cmath 202202L
|
2022-09-03 03:49:50 -08:00
|
|
|
# undef __cpp_lib_constexpr_memory
|
|
|
|
|
# define __cpp_lib_constexpr_memory 202202L
|
2023-02-06 16:08:19 -09:00
|
|
|
# define __cpp_lib_constexpr_typeinfo 202106L
|
2024-05-04 08:23:49 -08:00
|
|
|
# define __cpp_lib_containers_ranges 202202L
|
2026-06-25 15:52:00 -08:00
|
|
|
# define __cpp_lib_expected 202211L
|
2025-12-20 12:18:44 -09:00
|
|
|
# define __cpp_lib_flat_map 202511L
|
2026-01-19 11:27:56 -09:00
|
|
|
# define __cpp_lib_flat_set 202511L
|
2023-05-17 09:17:52 -08:00
|
|
|
# define __cpp_lib_format_ranges 202207L
|
|
|
|
|
// # define __cpp_lib_formatters 202302L
|
2022-08-21 07:21:08 -08:00
|
|
|
# define __cpp_lib_forward_like 202207L
|
2023-02-07 08:20:35 -09:00
|
|
|
# define __cpp_lib_invoke_r 202106L
|
2023-09-18 12:32:02 -08:00
|
|
|
# define __cpp_lib_ios_noreplace 202207L
|
2024-10-08 22:19:14 -08:00
|
|
|
# if __has_builtin(__builtin_is_implicit_lifetime)
|
|
|
|
|
# define __cpp_lib_is_implicit_lifetime 202302L
|
|
|
|
|
# endif
|
2021-01-12 07:06:58 -09:00
|
|
|
# define __cpp_lib_is_scoped_enum 202011L
|
2023-10-20 06:13:52 -08:00
|
|
|
# define __cpp_lib_mdspan 202207L
|
2024-06-12 09:01:27 -08:00
|
|
|
# define __cpp_lib_modules 202207L
|
2021-12-30 19:28:12 -09:00
|
|
|
// # define __cpp_lib_move_only_function 202110L
|
2022-05-17 09:15:18 -08:00
|
|
|
# undef __cpp_lib_optional
|
|
|
|
|
# define __cpp_lib_optional 202110L
|
2024-07-18 19:38:02 -08:00
|
|
|
# define __cpp_lib_out_ptr 202106L
|
2025-02-14 08:27:54 -09:00
|
|
|
# if _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
|
|
|
|
|
# define __cpp_lib_print 202207L
|
|
|
|
|
# endif
|
2024-08-28 04:55:44 -08:00
|
|
|
# undef __cpp_lib_ranges
|
|
|
|
|
# define __cpp_lib_ranges 202406L
|
2023-11-16 00:17:19 -09:00
|
|
|
// # define __cpp_lib_ranges_as_const 202207L
|
2023-02-25 00:26:28 -09:00
|
|
|
# define __cpp_lib_ranges_as_rvalue 202207L
|
2022-02-08 14:07:14 -09:00
|
|
|
// # define __cpp_lib_ranges_chunk 202202L
|
2023-09-05 15:09:53 -08:00
|
|
|
# define __cpp_lib_ranges_chunk_by 202202L
|
2024-02-29 15:06:32 -09:00
|
|
|
# define __cpp_lib_ranges_contains 202207L
|
2026-04-22 04:42:38 -08:00
|
|
|
# define __cpp_lib_ranges_enumerate 202302L
|
2024-07-19 08:42:16 -08:00
|
|
|
# define __cpp_lib_ranges_find_last 202207L
|
2026-05-11 02:35:15 -08:00
|
|
|
# define __cpp_lib_ranges_fold 202207L
|
2025-04-05 03:46:11 -08:00
|
|
|
# define __cpp_lib_ranges_iota 202202L
|
2025-06-21 01:54:50 -08:00
|
|
|
# define __cpp_lib_ranges_join_with 202202L
|
2023-07-20 04:00:10 -08:00
|
|
|
# define __cpp_lib_ranges_repeat 202207L
|
2022-02-08 14:07:14 -09:00
|
|
|
// # define __cpp_lib_ranges_slide 202202L
|
2024-02-29 15:06:32 -09:00
|
|
|
# define __cpp_lib_ranges_starts_ends_with 202106L
|
2026-04-25 02:51:37 -08:00
|
|
|
# define __cpp_lib_ranges_stride 202207L
|
2023-07-14 19:54:38 -08:00
|
|
|
# define __cpp_lib_ranges_to_container 202202L
|
2026-01-19 11:18:57 -09:00
|
|
|
# define __cpp_lib_ranges_zip 202110L
|
2022-02-08 14:07:14 -09:00
|
|
|
// # define __cpp_lib_reference_from_temporary 202202L
|
2026-02-14 08:34:44 -09:00
|
|
|
# undef __cpp_lib_shift
|
|
|
|
|
# define __cpp_lib_shift 202202L
|
2021-12-30 19:28:12 -09:00
|
|
|
// # define __cpp_lib_spanstream 202106L
|
2021-01-08 08:40:42 -09:00
|
|
|
// # define __cpp_lib_stacktrace 202011L
|
2022-04-11 06:42:45 -08:00
|
|
|
# define __cpp_lib_stdatomic_h 202011L
|
2021-01-19 10:33:30 -09:00
|
|
|
# define __cpp_lib_string_contains 202011L
|
2022-01-06 11:43:26 -09:00
|
|
|
# define __cpp_lib_string_resize_and_overwrite 202110L
|
2021-03-04 23:19:39 -09:00
|
|
|
# define __cpp_lib_to_underlying 202102L
|
2023-11-16 00:17:19 -09:00
|
|
|
// # define __cpp_lib_tuple_like 202207L
|
2022-02-14 08:26:02 -09:00
|
|
|
# define __cpp_lib_unreachable 202202L
|
2021-01-08 08:40:42 -09:00
|
|
|
#endif
|
|
|
|
|
|
2023-05-20 02:38:57 -08:00
|
|
|
#if _LIBCPP_STD_VER >= 26
|
2025-04-14 13:33:57 -08:00
|
|
|
# define __cpp_lib_aligned_accessor 202411L
|
2023-06-17 02:00:23 -08:00
|
|
|
// # define __cpp_lib_associative_heterogeneous_insertion 202306L
|
2026-07-21 03:41:49 -08:00
|
|
|
# define __cpp_lib_atomic_min_max 202403L
|
2025-10-13 04:27:02 -08:00
|
|
|
# undef __cpp_lib_atomic_ref
|
2026-04-11 22:56:35 -08:00
|
|
|
# define __cpp_lib_atomic_ref 202603L
|
2023-06-17 02:00:23 -08:00
|
|
|
# undef __cpp_lib_bind_front
|
|
|
|
|
# define __cpp_lib_bind_front 202306L
|
2023-06-17 08:06:55 -08:00
|
|
|
# define __cpp_lib_bitset 202306L
|
2026-06-22 09:17:53 -08:00
|
|
|
# define __cpp_lib_constant_wrapper 202606L
|
2025-03-20 15:33:52 -08:00
|
|
|
# undef __cpp_lib_constexpr_algorithms
|
|
|
|
|
# define __cpp_lib_constexpr_algorithms 202306L
|
2025-11-01 00:51:35 -08:00
|
|
|
# define __cpp_lib_constexpr_flat_map 202502L
|
|
|
|
|
# define __cpp_lib_constexpr_flat_set 202502L
|
2025-06-11 08:13:36 -08:00
|
|
|
# define __cpp_lib_constexpr_forward_list 202502L
|
2025-06-18 08:13:50 -08:00
|
|
|
# define __cpp_lib_constexpr_list 202502L
|
2026-06-02 23:59:57 -08:00
|
|
|
# define __cpp_lib_constexpr_map 202502L
|
2024-08-28 05:35:57 -08:00
|
|
|
# if !defined(_LIBCPP_ABI_VCRUNTIME)
|
|
|
|
|
# define __cpp_lib_constexpr_new 202406L
|
|
|
|
|
# endif
|
2025-06-04 03:58:25 -08:00
|
|
|
# define __cpp_lib_constexpr_queue 202502L
|
2026-06-30 15:20:25 -08:00
|
|
|
# define __cpp_lib_constexpr_set 202502L
|
2025-08-01 07:53:33 -08:00
|
|
|
# define __cpp_lib_constrained_equality 202411L
|
2023-06-17 02:00:23 -08:00
|
|
|
// # define __cpp_lib_copyable_function 202306L
|
2023-11-16 00:17:19 -09:00
|
|
|
// # define __cpp_lib_debugging 202311L
|
2024-04-03 04:21:11 -08:00
|
|
|
// # define __cpp_lib_default_template_type_for_algorithm_values 202403L
|
2024-05-28 11:15:50 -08:00
|
|
|
// # define __cpp_lib_format_path 202403L
|
2023-11-16 00:17:19 -09:00
|
|
|
// # define __cpp_lib_freestanding_algorithm 202311L
|
|
|
|
|
// # define __cpp_lib_freestanding_array 202311L
|
|
|
|
|
// # define __cpp_lib_freestanding_cstring 202306L
|
|
|
|
|
// # define __cpp_lib_freestanding_expected 202311L
|
|
|
|
|
// # define __cpp_lib_freestanding_mdspan 202311L
|
|
|
|
|
// # define __cpp_lib_freestanding_optional 202311L
|
|
|
|
|
// # define __cpp_lib_freestanding_string_view 202311L
|
|
|
|
|
// # define __cpp_lib_freestanding_variant 202311L
|
2024-11-06 00:39:19 -09:00
|
|
|
# if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION
|
2024-02-05 07:05:46 -09:00
|
|
|
# define __cpp_lib_fstream_native_handle 202306L
|
|
|
|
|
# endif
|
2026-07-25 08:44:55 -08:00
|
|
|
# define __cpp_lib_function_ref 202603L
|
2024-04-03 04:21:11 -08:00
|
|
|
// # define __cpp_lib_generate_random 202403L
|
2023-06-17 02:00:23 -08:00
|
|
|
// # define __cpp_lib_hazard_pointer 202306L
|
2024-07-08 09:35:31 -08:00
|
|
|
// # define __cpp_lib_inplace_vector 202406L
|
2025-12-25 16:07:13 -09:00
|
|
|
# undef __cpp_lib_integer_sequence
|
|
|
|
|
# define __cpp_lib_integer_sequence 202511L
|
2025-04-14 13:33:57 -08:00
|
|
|
# define __cpp_lib_is_sufficiently_aligned 202411L
|
2024-08-26 05:58:19 -08:00
|
|
|
# if __has_builtin(__builtin_is_virtual_base_of)
|
|
|
|
|
# define __cpp_lib_is_virtual_base_of 202406L
|
|
|
|
|
# endif
|
2025-11-02 01:30:31 -08:00
|
|
|
# if __has_builtin(__builtin_is_within_lifetime)
|
|
|
|
|
# define __cpp_lib_is_within_lifetime 202306L
|
|
|
|
|
# endif
|
2023-11-16 00:17:19 -09:00
|
|
|
// # define __cpp_lib_linalg 202311L
|
2024-07-15 07:23:34 -08:00
|
|
|
# undef __cpp_lib_mdspan
|
|
|
|
|
# define __cpp_lib_mdspan 202406L
|
2025-01-10 10:14:14 -09:00
|
|
|
# undef __cpp_lib_not_fn
|
|
|
|
|
# define __cpp_lib_not_fn 202306L
|
2025-11-11 18:00:08 -09:00
|
|
|
# undef __cpp_lib_optional
|
|
|
|
|
# define __cpp_lib_optional 202506L
|
2026-01-09 06:21:48 -09:00
|
|
|
# if _LIBCPP_HAS_EXPERIMENTAL_OPTIONAL_ITERATOR
|
|
|
|
|
# define __cpp_lib_optional_range_support 202406L
|
|
|
|
|
# endif
|
2023-11-16 00:17:19 -09:00
|
|
|
# undef __cpp_lib_out_ptr
|
2024-07-18 19:38:02 -08:00
|
|
|
# define __cpp_lib_out_ptr 202311L
|
2024-07-08 09:35:31 -08:00
|
|
|
// # define __cpp_lib_philox_engine 202406L
|
2026-05-30 14:26:16 -08:00
|
|
|
# define __cpp_lib_ranges_concat 202403L
|
2025-10-06 07:13:25 -08:00
|
|
|
# define __cpp_lib_ranges_indices 202506L
|
2023-06-17 05:50:50 -08:00
|
|
|
# define __cpp_lib_ratio 202306L
|
2026-06-12 17:56:56 -08:00
|
|
|
# undef __cpp_lib_raw_memory_algorithms
|
|
|
|
|
# define __cpp_lib_raw_memory_algorithms 202411L
|
2023-06-17 02:00:23 -08:00
|
|
|
// # define __cpp_lib_rcu 202306L
|
2024-05-09 01:48:37 -08:00
|
|
|
# define __cpp_lib_reference_wrapper 202403L
|
2026-04-12 06:21:12 -08:00
|
|
|
# define __cpp_lib_saturation_arithmetic 202603L
|
2024-07-08 09:35:31 -08:00
|
|
|
// # define __cpp_lib_senders 202406L
|
2026-07-27 02:00:45 -08:00
|
|
|
# define __cpp_lib_smart_ptr_owner_equality 202306L
|
2024-01-05 00:41:22 -09:00
|
|
|
# define __cpp_lib_span_at 202311L
|
2024-03-04 21:49:49 -09:00
|
|
|
# define __cpp_lib_sstream_from_string_view 202306L
|
2025-09-24 16:08:15 -08:00
|
|
|
# define __cpp_lib_string_subview 202506L
|
2024-07-18 02:26:37 -08:00
|
|
|
# undef __cpp_lib_string_view
|
|
|
|
|
# define __cpp_lib_string_view 202403L
|
2023-06-17 02:00:23 -08:00
|
|
|
// # define __cpp_lib_submdspan 202306L
|
2026-06-24 15:46:11 -08:00
|
|
|
# define __cpp_lib_text_encoding 202306L
|
2023-06-17 03:19:58 -08:00
|
|
|
# undef __cpp_lib_to_chars
|
|
|
|
|
// # define __cpp_lib_to_chars 202306L
|
2024-05-28 11:15:50 -08:00
|
|
|
// # define __cpp_lib_to_string 202306L
|
2023-11-16 00:17:19 -09:00
|
|
|
# undef __cpp_lib_tuple_like
|
|
|
|
|
// # define __cpp_lib_tuple_like 202311L
|
2024-10-25 15:38:52 -08:00
|
|
|
# undef __cpp_lib_variant
|
|
|
|
|
# define __cpp_lib_variant 202306L
|
2023-05-20 02:38:57 -08:00
|
|
|
#endif
|
|
|
|
|
|
2024-12-21 03:01:48 -09:00
|
|
|
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
|
|
|
|
|
|
2021-02-19 04:10:12 -09:00
|
|
|
// clang-format on
|
|
|
|
|
|
2019-01-15 16:37:43 -09:00
|
|
|
#endif // _LIBCPP_VERSIONH
|