-
Notifications
You must be signed in to change notification settings - Fork 0
c8_natural_divide_modulus
Dave Hudson edited this page May 3, 2017
·
3 revisions
auto divide_modulus(natural_digit v) const -> std::pair<natural, natural_digit>;
auto divide_modulus(const natural &v) const -> std::pair<natural, natural>;Divides the value of this object by v (right hand side of the operator). The result is a pair that represents the quotient, and the remainder.
A std::pair that represents the quotient and the remainder. first represents the quotient, while second represents the remainder.
-
std::bad_allocin the event of a memory allocation failure. -
c8::divide_by_zeroif the divisor,vis zero.