@@ -30,98 +30,27 @@ class basic_string_view {
3030 constexpr basic_string_view &operator =(const basic_string_view &) {}
3131};
3232
33- template <typename CharT>
34- constexpr bool operator <(basic_string_view<CharT>, basic_string_view<CharT>) {
35- return {};
36- }
37- template <typename CharT>
38- constexpr bool operator <(type_identity_t <basic_string_view<CharT>>,
39- basic_string_view<CharT>) {
40- return {};
41- }
42- template <typename CharT>
43- constexpr bool operator <(basic_string_view<CharT>,
44- type_identity_t <basic_string_view<CharT>>) {
45- return {};
46- }
47-
48- template <typename CharT>
49- constexpr bool operator <=(basic_string_view<CharT>, basic_string_view<CharT>) {
50- return {};
51- }
52- template <typename CharT>
53- constexpr bool operator <=(type_identity_t <basic_string_view<CharT>>,
54- basic_string_view<CharT>) {
55- return {};
56- }
57- template <typename CharT>
58- constexpr bool operator <=(basic_string_view<CharT>,
59- type_identity_t <basic_string_view<CharT>>) {
60- return {};
61- }
62-
63- template <typename CharT>
64- constexpr bool operator >(basic_string_view<CharT>, basic_string_view<CharT>) {
65- return {};
66- }
67- template <typename CharT>
68- constexpr bool operator >(type_identity_t <basic_string_view<CharT>>,
69- basic_string_view<CharT>) {
70- return {};
71- }
72- template <typename CharT>
73- constexpr bool operator >(basic_string_view<CharT>,
74- type_identity_t <basic_string_view<CharT>>) {
75- return {};
76- }
77-
78- template <typename CharT>
79- constexpr bool operator >=(basic_string_view<CharT>, basic_string_view<CharT>) {
80- return {};
81- }
82- template <typename CharT>
83- constexpr bool operator >=(type_identity_t <basic_string_view<CharT>>,
84- basic_string_view<CharT>) {
85- return {};
86- }
87- template <typename CharT>
88- constexpr bool operator >=(basic_string_view<CharT>,
89- type_identity_t <basic_string_view<CharT>>) {
90- return {};
91- }
33+ using string_view = basic_string_view<char >;
9234
93- template <typename CharT>
94- constexpr bool operator ==(basic_string_view<CharT>, basic_string_view<CharT>) {
35+ constexpr bool operator <(string_view, string_view) {
9536 return {};
9637}
97- template <typename CharT>
98- constexpr bool operator ==(type_identity_t <basic_string_view<CharT>>,
99- basic_string_view<CharT>) {
38+ constexpr bool operator <=(string_view, string_view) {
10039 return {};
10140}
102- template <typename CharT>
103- constexpr bool operator ==(basic_string_view<CharT>,
104- type_identity_t <basic_string_view<CharT>>) {
41+ constexpr bool operator >(string_view, string_view) {
10542 return {};
10643}
107-
108- template <typename CharT>
109- constexpr bool operator !=(basic_string_view<CharT>, basic_string_view<CharT>) {
44+ constexpr bool operator >=(string_view, string_view) {
11045 return {};
11146}
112- template <typename CharT>
113- constexpr bool operator !=(type_identity_t <basic_string_view<CharT>>,
114- basic_string_view<CharT>) {
47+ constexpr bool operator ==(string_view, string_view) {
11548 return {};
11649}
117- template <typename CharT>
118- constexpr bool operator !=(basic_string_view<CharT>,
119- type_identity_t <basic_string_view<CharT>>) {
50+ constexpr bool operator !=(string_view, string_view) {
12051 return {};
12152}
12253
123- using string_view = basic_string_view<char >;
124-
12554} // namespace std
12655
12756using SV = std::string_view; // Used in some places for shorter line length
0 commit comments