@@ -30,98 +30,27 @@ class basic_string_view {
30
30
constexpr basic_string_view &operator =(const basic_string_view &) {}
31
31
};
32
32
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 >;
92
34
93
- template <typename CharT>
94
- constexpr bool operator ==(basic_string_view<CharT>, basic_string_view<CharT>) {
35
+ constexpr bool operator <(string_view, string_view) {
95
36
return {};
96
37
}
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) {
100
39
return {};
101
40
}
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) {
105
42
return {};
106
43
}
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) {
110
45
return {};
111
46
}
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) {
115
48
return {};
116
49
}
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) {
120
51
return {};
121
52
}
122
53
123
- using string_view = basic_string_view<char >;
124
-
125
54
} // namespace std
126
55
127
56
using SV = std::string_view; // Used in some places for shorter line length
0 commit comments