From 00da9e9a07824aaba16ead2180ea9bb00bf14827 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sun, 14 Aug 2022 14:14:09 +0200 Subject: [PATCH] [libc++][string] Removes obsolete constexpr. Addresses the final review comment of D131421. Reviewed By: philnik, #libc Differential Revision: https://reviews.llvm.org/D131857 --- libcxx/include/string | 64 +++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/libcxx/include/string b/libcxx/include/string index 6a909f6ba768..07bf333579b2 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -375,60 +375,60 @@ bool operator==(const basic_string& lhs, const basic_string& rhs) noexcept; // constexpr since C++20 template -bool operator==(const charT* lhs, const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator==(const charT* lhs, const basic_string& rhs) noexcept; // removed in C++20 template bool operator==(const basic_string& lhs, const charT* rhs) noexcept; // constexpr since C++20 template bool operator!=(const basic_string& lhs, - const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 + const basic_string& rhs) noexcept; // removed in C++20 template -bool operator!=(const charT* lhs, const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator!=(const charT* lhs, const basic_string& rhs) noexcept; // removed in C++20 template -bool operator!=(const basic_string& lhs, const charT* rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator!=(const basic_string& lhs, const charT* rhs) noexcept; // removed in C++20 template bool operator< (const basic_string& lhs, - const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 + const basic_string& rhs) noexcept; // removed in C++20 template -bool operator< (const basic_string& lhs, const charT* rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator< (const basic_string& lhs, const charT* rhs) noexcept; // removed in C++20 template -bool operator< (const charT* lhs, const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator< (const charT* lhs, const basic_string& rhs) noexcept; // removed in C++20 template bool operator> (const basic_string& lhs, - const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 + const basic_string& rhs) noexcept; // removed in C++20 template -bool operator> (const basic_string& lhs, const charT* rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator> (const basic_string& lhs, const charT* rhs) noexcept; // removed in C++20 template -bool operator> (const charT* lhs, const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator> (const charT* lhs, const basic_string& rhs) noexcept; // removed in C++20 template bool operator<=(const basic_string& lhs, - const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 + const basic_string& rhs) noexcept; // removed in C++20 template -bool operator<=(const basic_string& lhs, const charT* rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator<=(const basic_string& lhs, const charT* rhs) noexcept; // removed in C++20 template -bool operator<=(const charT* lhs, const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator<=(const charT* lhs, const basic_string& rhs) noexcept; // removed in C++20 template bool operator>=(const basic_string& lhs, - const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 + const basic_string& rhs) noexcept; // removed in C++20 template -bool operator>=(const basic_string& lhs, const charT* rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator>=(const basic_string& lhs, const charT* rhs) noexcept; // removed in C++20 template -bool operator>=(const charT* lhs, const basic_string& rhs) noexcept; // constexpr since C++20, removed in C++20 +bool operator>=(const charT* lhs, const basic_string& rhs) noexcept; // removed in C++20 template // since C++20 constexpr see below operator<=>(const basic_string& lhs, @@ -4193,7 +4193,7 @@ operator==(const basic_string, _Allocator>& __lhs, #if _LIBCPP_STD_VER <= 17 template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator==(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4241,7 +4241,7 @@ operator<=>(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT #else // _LIBCPP_STD_VER > 17 template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const basic_string<_CharT,_Traits,_Allocator>& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4250,7 +4250,7 @@ operator!=(const basic_string<_CharT,_Traits,_Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4259,7 +4259,7 @@ operator!=(const _CharT* __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) _NOEXCEPT @@ -4270,7 +4270,7 @@ operator!=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, // operator< template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4279,7 +4279,7 @@ operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) _NOEXCEPT @@ -4288,7 +4288,7 @@ operator< (const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator< (const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4299,7 +4299,7 @@ operator< (const _CharT* __lhs, // operator> template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4308,7 +4308,7 @@ operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) _NOEXCEPT @@ -4317,7 +4317,7 @@ operator> (const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator> (const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4328,7 +4328,7 @@ operator> (const _CharT* __lhs, // operator<= template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4337,7 +4337,7 @@ operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) _NOEXCEPT @@ -4346,7 +4346,7 @@ operator<=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator<=(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4357,7 +4357,7 @@ operator<=(const _CharT* __lhs, // operator>= template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT @@ -4366,7 +4366,7 @@ operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) _NOEXCEPT @@ -4375,7 +4375,7 @@ operator>=(const basic_string<_CharT, _Traits, _Allocator>& __lhs, } template -inline _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI +inline _LIBCPP_HIDE_FROM_ABI bool operator>=(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT