Documentation Home >> Headers >> <jss/actor.hpp> Header >> jss::actor >> jss::actor move assignment operator

Transfer ownership of an actor thread from one jss::actor instance to another.

actor& operator=(actor&& other);

Preconditions:

&other != this

Effects:

Releases ownership of any actor thread associated with *this prior to the call, and waits that thread to complete. Transfers ownership of the actor thread associated with other prior to the call, if any, to *this.

Throws:

Nothing.

Postconditions:

this->valid() returns true if other.valid() was true before the call, false otherwise. other.valid() returns false.

Header

#include <jss/actor.hpp>

See Also