abacus: bignum: put sign checks in helper methods

Make them public because they can be useful in consumers of the library.
This commit is contained in:
Bruno BELANYI 2021-08-20 23:46:19 +02:00
parent 4a4b9f361c
commit 2489ce19b2
2 changed files with 24 additions and 5 deletions

View file

@ -86,6 +86,10 @@ public:
return !(lhs < rhs);
}
bool is_zero() const;
bool is_positive() const;
bool is_negative() const;
private:
std::ostream& dump(std::ostream& out) const;
std::istream& read(std::istream& in);