| 55 | intx operator -() const { |
| 56 | intx res(*this); res.sign *= -1; return res; } |
| 57 | friend intx abs(const intx &n) { return n < 0 ? -n : n; } |
| 58 | intx operator +(const intx& b) const { |
| 59 | if (sign > 0 && b.sign < 0) return *this - (-b); |
| 60 | if (sign < 0 && b.sign > 0) return b - (-*this); |
nothing calls this directly
no outgoing calls
no test coverage detected