diff options
author | hiddenpath <hiddenpath@yandex-team.com> | 2024-02-21 23:16:42 +0300 |
---|---|---|
committer | hiddenpath <hiddenpath@yandex-team.com> | 2024-02-21 23:33:25 +0300 |
commit | 9052eb5cc304b8da8885fc4e3364ebddc16945f3 (patch) | |
tree | 3c252f6161dd0745c7732d74c9304c000645ab47 /contrib/libs/cxxsupp/libcxx/include/utility | |
parent | f5eb715f103692e7c7536e13bef3f281fd78e5e7 (diff) | |
download | ydb-9052eb5cc304b8da8885fc4e3364ebddc16945f3.tar.gz |
Update libcxx to llvmorg-17.0.6
Update libcxx to llvmorg-17.0.6
c871ef572c71b4fef22d4a9e65bcebc57e625aea
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/include/utility')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/utility | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/utility b/contrib/libs/cxxsupp/libcxx/include/utility index a4d8cf853d..c5581d55e7 100644 --- a/contrib/libs/cxxsupp/libcxx/include/utility +++ b/contrib/libs/cxxsupp/libcxx/include/utility @@ -84,14 +84,15 @@ struct pair explicit(see-below) constexpr pair(); explicit(see-below) pair(const T1& x, const T2& y); // constexpr in C++14 template <class U = T1, class V = T2> explicit(see-below) pair(U&&, V&&); // constexpr in C++14 - template <class U, class V> constexpr explicit(see below) pair(pair<U, V>&); // since C++23 + template <class U, class V> constexpr explicit(see-below) pair(pair<U, V>&); // since C++23 template <class U, class V> explicit(see-below) pair(const pair<U, V>& p); // constexpr in C++14 template <class U, class V> explicit(see-below) pair(pair<U, V>&& p); // constexpr in C++14 template <class U, class V> - constexpr explicit(see below) pair(const pair<U, V>&&); // since C++23 + constexpr explicit(see-below) pair(const pair<U, V>&&); // since C++23 + template <pair-like P> constexpr explicit(see-below) pair(P&&); // since C++23 template <class... Args1, class... Args2> - pair(piecewise_construct_t, tuple<Args1...> first_args, - tuple<Args2...> second_args); // constexpr in C++20 + pair(piecewise_construct_t, tuple<Args1...> first_args, // constexpr in C++20 + tuple<Args2...> second_args); constexpr const pair& operator=(const pair& p) const; // since C++23 template <class U, class V> pair& operator=(const pair<U, V>& p); // constexpr in C++20 @@ -103,6 +104,8 @@ struct pair template <class U, class V> pair& operator=(pair<U, V>&& p); // constexpr in C++20 template <class U, class V> constexpr const pair& operator=(pair<U, V>&& p) const; // since C++23 + template <pair-like P> constexpr pair& operator=(P&&); // since C++23 + template <pair-like P> constexpr const pair& operator=(P&&) const; // since C++23 void swap(pair& p) noexcept(is_nothrow_swappable_v<T1> && is_nothrow_swappable_v<T2>); // constexpr in C++20 @@ -117,24 +120,30 @@ struct common_type<pair<T1, T2>, pair<U1, U2>>; template<class T1, class T2> pair(T1, T2) -> pair<T1, T2>; -template <class T1, class T2> bool operator==(const pair<T1,T2>&, const pair<T1,T2>&); // constexpr in C++14 -template <class T1, class T2> bool operator!=(const pair<T1,T2>&, const pair<T1,T2>&); // constexpr in C++14, removed in C++20 -template <class T1, class T2> bool operator< (const pair<T1,T2>&, const pair<T1,T2>&); // constexpr in C++14, removed in C++20 -template <class T1, class T2> bool operator> (const pair<T1,T2>&, const pair<T1,T2>&); // constexpr in C++14, removed in C++20 -template <class T1, class T2> bool operator>=(const pair<T1,T2>&, const pair<T1,T2>&); // constexpr in C++14, removed in C++20 -template <class T1, class T2> bool operator<=(const pair<T1,T2>&, const pair<T1,T2>&); // constexpr in C++14, removed in C++20 -template <class T1, class T2> - constexpr common_comparison_type_t<synth-three-way-result<T1>, - synth-three-way-result<T2>> - operator<=>(const pair<T1,T2>&, const pair<T1,T2>&); // C++20 +template <class T1, class T2, class U1, class U2> +bool operator==(const pair<T1,T2>&, const pair<U1,U2>&); // constexpr in C++14 +template <class T1, class T2, class U1, class U2> +bool operator!=(const pair<T1,T2>&, const pair<U1,U2>&); // constexpr in C++14, removed in C++20 +template <class T1, class T2, class U1, class U2> +bool operator< (const pair<T1,T2>&, const pair<U1,U2>&); // constexpr in C++14, removed in C++20 +template <class T1, class T2, class U1, class U2> +bool operator> (const pair<T1,T2>&, const pair<U1,U2>&); // constexpr in C++14, removed in C++20 +template <class T1, class T2, class U1, class U2> +bool operator>=(const pair<T1,T2>&, const pair<U1,U2>&); // constexpr in C++14, removed in C++20 +template <class T1, class T2, class U1, class U2> +bool operator<=(const pair<T1,T2>&, const pair<U1,U2>&); // constexpr in C++14, removed in C++20 +template <class T1, class T2, class U1, class U2> + constexpr common_comparison_type_t<synth-three-way-result<T1,U1>, + synth-three-way-result<T2,U2>> + operator<=>(const pair<T1,T2>&, const pair<U1,U2>&); // C++20 template <class T1, class T2> pair<V1, V2> make_pair(T1&&, T2&&); // constexpr in C++14 template <class T1, class T2> void swap(pair<T1, T2>& x, pair<T1, T2>& y) noexcept(noexcept(x.swap(y))); // constexpr in C++20 -template<class T1, class T2> -constexpr void swap(const pair<T1, T2>& x, const pair<T1, T2>& y) noexcept(noexcept(x.swap(y))); // since C++23 +template<class T1, class T2> // since C++23 +constexpr void swap(const pair<T1, T2>& x, const pair<T1, T2>& y) noexcept(noexcept(x.swap(y))); struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; inline constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t(); @@ -208,8 +217,8 @@ template<class... T> using index_sequence_for = make_index_sequence<sizeof...(T)>; template<class T, class U=T> - constexpr T exchange(T& obj, U&& new_value) - noexcept(is_nothrow_move_constructible<T>::value && is_nothrow_assignable<T&, U>::value); // constexpr in C++17, noexcept in C++23 + constexpr T exchange(T& obj, U&& new_value) // constexpr in C++17, noexcept in C++23 + noexcept(is_nothrow_move_constructible<T>::value && is_nothrow_assignable<T&, U>::value); // 20.2.7, in-place construction // C++17 struct in_place_t { @@ -231,7 +240,7 @@ template <size_t I> // [utility.underlying], to_underlying template <class T> - constexpr underlying_type_t<T> to_underlying( T value ) noexcept; // C++2b + constexpr underlying_type_t<T> to_underlying( T value ) noexcept; // C++23 } // std @@ -266,8 +275,8 @@ template <class T> #include <initializer_list> // [tuple.helper] -#include <__tuple_dir/tuple_element.h> -#include <__tuple_dir/tuple_size.h> +#include <__tuple/tuple_element.h> +#include <__tuple/tuple_size.h> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header |