Skip to content

c8_integer_operator_unary_mi

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

c8::integer::operator - (Unary)

auto operator -() const -> integer;

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

Return Value

A new c8::integer 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