Skip to content

c8_natural_operator_moeq

Dave Hudson edited this page May 4, 2017 · 3 revisions

c8::natural::operator %=

auto operator %=(const natural &v) -> natural &;

Divides the value of this object (left hand side of the operator) by the value of v (right hand side of the operator), retaining only the remainder.

Return Value

A reference to this object (left hand side of the operator).

Exceptions

  • std::bad_alloc in the event of a memory allocation failure.
  • c8::divide_by_zero if the divisor, v is zero.

See Also

Clone this wiki locally