Lines Matching full:default
1 // This test is for the [class.compare.default]p3 added by P2002R0
19 friend bool operator==(const A&, const A&) = default;
20 friend bool operator!=(const A&, const A&) = default;
22 friend std::strong_ordering operator<=>(const A&, const A&) = default;
23 friend bool operator<(const A&, const A&) = default;
24 friend bool operator<=(const A&, const A&) = default;
25 friend bool operator>(const A&, const A&) = default;
26 friend bool operator>=(const A&, const A&) = default;
42 friend bool operator>=(const ReversedA&, const ReversedA&) = default;
43 friend bool operator>(const ReversedA&, const ReversedA&) = default;
44 friend bool operator<=(const ReversedA&, const ReversedA&) = default;
45 friend bool operator<(const ReversedA&, const ReversedA&) = default;
46 friend std::strong_ordering operator<=>(const ReversedA&, const ReversedA&) = default;
48 friend bool operator!=(const ReversedA&, const ReversedA&) = default;
49 friend bool operator==(const ReversedA&, const ReversedA&) = default;
64 friend bool operator==(const B&, const B&) = default;
65 friend bool operator!=(const B&, const B&) = default;
67 friend std::strong_ordering operator<=>(const B&, const B&) = default;
68 friend bool operator<(const B&, const B&) = default;
69 friend bool operator<=(const B&, const B&) = default;
70 friend bool operator>(const B&, const B&) = default;
71 friend bool operator>=(const B&, const B&) = default;
87 friend bool operator!=(const C&, const C&) = default; // expected-note {{previous}}
91 friend bool operator<(const C&, const C&) = default; // expected-note {{previous}}
92 friend bool operator<=(const C&, const C&) = default; // expected-note {{previous}}
93 friend bool operator>(const C&, const C&) = default; // expected-note {{previous}}
94 friend bool operator>=(const C&, const C&) = default; // expected-note {{previous}}
111 friend bool operator==(const D&, const D&) = default; // expected-note {{previous}}
112 friend bool operator!=(const D&, const D&) = default; // expected-note {{previous}}
114 …friend std::strong_ordering operator<=>(const D&, const D&) = default; // expected-note {{previous…
115 friend bool operator<(const D&, const D&) = default; // expected-note {{previous}}
116 friend bool operator<=(const D&, const D&) = default; // expected-note {{previous}}
117 friend bool operator>(const D&, const D&) = default; // expected-note {{previous}}
118 friend bool operator>=(const D&, const D&) = default; // expected-note {{previous}}
136 …friend constexpr bool operator==(const E&, const E&) = default; // cxx2a-error {{cannot be declare…
137 friend constexpr bool operator!=(const E&, const E&) = default;
139 …friend constexpr std::strong_ordering operator<=>(const E&, const E&) = default; // cxx2a-error {{…
140 friend constexpr bool operator<(const E&, const E&) = default;
141 friend constexpr bool operator<=(const E&, const E&) = default;
142 friend constexpr bool operator>(const E&, const E&) = default;
143 friend constexpr bool operator>=(const E&, const E&) = default;
147 …friend constexpr bool operator==(const E2&, const E2&) = default; // cxx2a-error {{cannot be decla…
148 friend constexpr bool operator!=(const E2&, const E2&) = default;
150 …friend constexpr std::strong_ordering operator<=>(const E2&, const E2&) = default; // cxx2a-error …
151 friend constexpr bool operator<(const E2&, const E2&) = default;
152 friend constexpr bool operator<=(const E2&, const E2&) = default;
153 friend constexpr bool operator>(const E2&, const E2&) = default;
154 friend constexpr bool operator>=(const E2&, const E2&) = default;
159 …friend constexpr bool operator!=(const F&, const F&) = default; // cxx2a-error {{cannot be declare…
162 …friend constexpr bool operator<(const F&, const F&) = default; // cxx2a-error {{cannot be declared…
163 …friend constexpr bool operator<=(const F&, const F&) = default; // cxx2a-error {{cannot be declare…
164 …friend constexpr bool operator>(const F&, const F&) = default; // cxx2a-error {{cannot be declared…
165 …friend constexpr bool operator>=(const F&, const F&) = default; // cxx2a-error {{cannot be declare…
180 …friend bool operator==(const G&, const G&) = default; // expected-error {{because it was already d…
181 …friend bool operator!=(const G&, const G&) = default; // expected-error {{because it was already d…
183 …friend std::strong_ordering operator<=>(const G&, const G&) = default; // expected-error {{because…
184 …friend bool operator<(const G&, const G&) = default; // expected-error {{because it was already de…
185 …friend bool operator<=(const G&, const G&) = default; // expected-error {{because it was already d…
186 …friend bool operator>(const G&, const G&) = default; // expected-error {{because it was already de…
187 …friend bool operator>=(const G&, const G&) = default; // expected-error {{because it was already d…
204 friend bool operator==(const S &, const S &) = default;
205 friend bool operator<=>(const S &, const S &) = default;