-
Notifications
You must be signed in to change notification settings - Fork 0
c8_integer
Dave Hudson edited this page Apr 1, 2017
·
5 revisions
c8::integer is a class designed to represent the integers (all positive and negative whole numbers). Conceptually they behave in a somewhat similar way to int, but offer unlimited precision.
Construct a integer number.
- ~integer
Destroy (and free all resources allocated to) a integer number.
Compare this integer number with another.
Perform arithmetic with this number.
Perform bitwise operations on this number.
Perform assignment operations on this number.
auto operator -() const -> integerauto divide_modulus(const integer &v) const -> std::pair<integer, integer>auto gcd(const integer &v) const -> integerauto to_long_long() const -> long longauto is_zero() const noexcept -> boolauto is_negative() const -> boolauto abs() const -> naturalauto negate() -> integer &friend auto operator <<(std::ostream &outstr, const integer &v) -> std::ostream &
TBD