1 | #include <compare> |
---|---|
2 | |
3 | struct Foo { |
4 | friend auto operator<=>(Foo const &, Foo const &) { return true; } |
5 | }; |
6 | |
7 | int main() { return Foo{} <=> Foo{}; } |
8 |
1 | #include <compare> |
---|---|
2 | |
3 | struct Foo { |
4 | friend auto operator<=>(Foo const &, Foo const &) { return true; } |
5 | }; |
6 | |
7 | int main() { return Foo{} <=> Foo{}; } |
8 |