| 58 | return ptr != nullptr && other.ptr != nullptr && *ptr == *other.ptr; |
| 59 | } |
| 60 | bool operator<(const HeapInt& other) const { |
| 61 | return ptr == nullptr || (other.ptr != nullptr && *ptr < *other.ptr); |
| 62 | } |
| 63 | |
| 64 | bool operator==(int other) const { return ptr != nullptr && *ptr == other; } |
| 65 | friend bool operator==(int left, const HeapInt& right) { return right == left; } |
nothing calls this directly
no outgoing calls
no test coverage detected