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:
parent
4a4b9f361c
commit
2489ce19b2
2 changed files with 24 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue