Skip to content

c8_integer

Dave Hudson edited this page May 2, 2017 · 5 revisions

c8::integer

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.

Constructors

Destructor

  • ~integer

Assignment Operators

Unary Operators

Arithmetic Operators

Bitwise Operators

Compound Assignment Operators

Comparison Operators

Public Member Functions

  • auto abs() const -> natural
  • divide_modulus
  • auto gcd(const integer &v) const -> integer
  • is_negative
  • is_zero
  • auto negate() -> integer &
  • auto to_long_long() const -> long long

Friend Functions

  • friend auto operator <<(std::ostream &outstr, const integer &v) -> std::ostream &

See Also

Clone this wiki locally