-
Notifications
You must be signed in to change notification settings - Fork 0
c8_rational_operator_eq
Dave Hudson edited this page May 2, 2017
·
2 revisions
auto operator =(const rational &v) -> rational &;Copy the object v and assign the copy to this object (left hand side of the operator).
A reference to this object (left hand side of the operator).
-
std::bad_allocin the event of a memory allocation failure.
auto operator =(const rational &&v) noexcept -> rational &;Move the contents of object v and assign them to this object (left hand side of the operator). v is cleared down to zero.
A reference to this object (left hand side of the operator).
-
std::bad_allocin the event of a memory allocation failure.