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

Transfer ownership of an actor thread from a jss::actor instance to a newly constructed jss::actor instance.

actor(actor&& other);

Effects:

Constructs a jss::actor instance which takes ownership of the actor thread associated with other prior to the call, if any.

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