| 6 | int x; |
| 7 | |
| 8 | constexpr auto operator<=>(const int& value) const |
| 9 | { |
| 10 | if(x == value) { |
| 11 | return std::strong_ordering::equal; |
| 12 | } else if(value > x) { |
| 13 | return std::strong_ordering::less; |
| 14 | } else { |
| 15 | return std::strong_ordering::greater; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | constexpr bool operator==(const int& value) const |
| 20 | { |
nothing calls this directly
no outgoing calls
no test coverage detected