-
Notifications
You must be signed in to change notification settings - Fork 0
c8_rational_operator_pl
Dave Hudson edited this page May 2, 2017
·
2 revisions
auto operator +(const rational &v) const -> rational;
Adds the value of this object (left hand side of the operator) and v
(right hand side of the operator), resulting in a new c8::rational
object.
A new c8::rational
object with a value equal to the sum of the value of this object and v
.
-
std::bad_alloc
in the event of a memory allocation failure.