Lines Matching full:const

10     constexpr operator int() const { return n; }  in operator int()
11 static const strong_ordering less, equal, greater;
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;
29 friend constexpr bool operator==(const A&, const A&) noexcept;
30 friend constexpr bool operator!=(const A&, const A&) noexcept;
32 friend constexpr std::strong_ordering operator<=>(const A&, const A&) noexcept;
33 friend constexpr bool operator<(const A&, const A&);
34 friend constexpr bool operator<=(const A&, const A&);
35 friend constexpr bool operator>(const A&, const A&);
36 friend constexpr bool operator>=(const A&, const A&);
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;
52 friend constexpr bool operator>=(const ReversedA&, const ReversedA&);
53 friend constexpr bool operator>(const ReversedA&, const ReversedA&);
54 friend constexpr bool operator<=(const ReversedA&, const ReversedA&);
55 friend constexpr bool operator<(const ReversedA&, const ReversedA&);
56 friend constexpr std::strong_ordering operator<=>(const ReversedA&, const ReversedA&) noexcept;
58 friend constexpr bool operator!=(const ReversedA&, const ReversedA&) noexcept;
59 friend constexpr bool operator==(const ReversedA&, const ReversedA&) noexcept;
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;
74 friend constexpr bool operator==(const B&, const B&) noexcept;
75 friend constexpr bool operator!=(const B&, const B&) noexcept;
77 friend constexpr std::strong_ordering operator<=>(const B&, const B&);
78 friend constexpr bool operator<(const B&, const B&);
79 friend constexpr bool operator<=(const B&, const B&);
80 friend constexpr bool operator>(const B&, const B&);
81 friend constexpr bool operator>=(const B&, const B&);
85 friend bool operator==(const C&, const C&); // expected-note {{previous}} \
87 friend bool operator!=(const C&, const C&) = default; // expected-note {{previous}}
89 friend std::strong_ordering operator<=>(const C&, const C&); // 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}}
97 friend constexpr bool operator==(const C&, const C&); // expected-error {{non-constexpr}}
98 friend constexpr bool operator!=(const C&, const C&); // expected-error {{non-constexpr}}
100 …friend constexpr std::strong_ordering operator<=>(const C&, const C&); // expected-error {{non-con…
101 friend constexpr bool operator<(const C&, const C&); // expected-error {{non-constexpr}}
102 friend constexpr bool operator<=(const C&, const C&); // expected-error {{non-constexpr}}
103 friend constexpr bool operator>(const C&, const C&); // expected-error {{non-constexpr}}
104 friend constexpr bool operator>=(const C&, const C&); // expected-error {{non-constexpr}}
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}}
121 friend constexpr bool operator==(const D&, const D&); // expected-error {{non-constexpr}}
122 friend constexpr bool operator!=(const D&, const D&); // expected-error {{non-constexpr}}
124 …friend constexpr std::strong_ordering operator<=>(const D&, const D&); // expected-error {{non-con…
125 friend constexpr bool operator<(const D&, const D&); // expected-error {{non-constexpr}}
126 friend constexpr bool operator<=(const D&, const D&); // expected-error {{non-constexpr}}
127 friend constexpr bool operator>(const D&, const D&); // expected-error {{non-constexpr}}
128 friend constexpr bool operator>=(const D&, const D&); // expected-error {{non-constexpr}}
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;
158 friend bool operator==(const F&, const F&); // cxx2a-note {{declared here}}
159 …friend constexpr bool operator!=(const F&, const F&) = default; // cxx2a-error {{cannot be declare…
161 …friend std::strong_ordering operator<=>(const F&, const F&); // cxx2a-note 4{{non-constexpr compar…
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…
172 bool operator==(const G&, const G&); // expected-note {{previous declaration}}
173 bool operator!=(const G&, const G&); // expected-note {{previous declaration}}
174 std::strong_ordering operator<=>(const G&, const G&); // expected-note {{previous declaration}}
175 bool operator<(const G&, const G&); // expected-note {{previous declaration}}
176 bool operator<=(const G&, const G&); // expected-note {{previous declaration}}
177 bool operator>(const G&, const G&); // expected-note {{previous declaration}}
178 bool operator>=(const G&, const G&); // expected-note {{previous declaration}}
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…
189 bool operator==(const G&, const G&);
190 bool operator!=(const G&, const G&);
192 std::strong_ordering operator<=>(const G&, const G&);
193 bool operator<(const G&, const G&);
194 bool operator<=(const G&, const G&);
195 bool operator>(const G&, const G&);
196 bool operator>=(const G&, const G&);
199 template <typename T> bool operator==(T const &, T const &) { return true; } in operator ==() argument
200 template <typename T, typename U> bool operator!=(T const &, U const &) { return true; } in operator !=() argument
201 template <typename T> int operator<=>(T const &, T const &) { return 0; } in operator <=>() argument
204 friend bool operator==(const S &, const S &) = default;
205 friend bool operator<=>(const S &, const S &) = default;