Skip to content

c8_rational_operator_unary_mi

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

c8::rational::operator - (Unary)

auto operator -() const -> rational;

Generate a c8::rational object that has the negated value of this object (right hand side of the operator).

Return Value

A new c8::rational object with a value equal to the negated value of this object.

Exceptions

  • std::bad_alloc in the event of a memory allocation failure.

See Also

Clone this wiki locally