Documentation Home >> Headers >> <jss/actor.hpp> Header >> jss::actor_ref >> operator<< insertion operator for jss::actor_ref

The insertion operator for jss::actor_ref provides a simplified means of sending a message to an actor. This can be used to send multiple messages in a chain.

template<typename Msg>
actor_ref const& operator<<(actor_ref const& a,Msg&& msg);

Effects:

a.send(std::forward<Msg>(msg))

Returns:

a

Header

#include <jss/actor.hpp>

See Also