MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / operator -

Method operator -

code/mathematics/intx.cpp:55–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 : data[i] > b.data[i];
54 return false; }
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);

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.80
normalizeMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected