Skip to content

c8_natural_operator_eq

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

c8::natural::operator =

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

Copy the object v and assign the copy to this object (left hand side of the operator).

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::natural::operator =

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

Move the contents of object v and assign them to this object (left hand side of the operator). v is cleared down to zero.

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.

See Also

Clone this wiki locally