Commit a127cac1 authored by Dominik Charousset's avatar Dominik Charousset

Add `actor::is_remove` convenience function

parent e036adcc
......@@ -147,6 +147,11 @@ class actor : detail::comparable<actor>,
*/
actor_addr address() const;
/**
* Returns whether this is an handle to a remote actor.
*/
bool is_remote() const;
actor_id id() const;
void swap(actor& other);
......
......@@ -58,6 +58,10 @@ actor_addr actor::address() const {
return m_ptr ? m_ptr->address() : actor_addr{};
}
bool actor::is_remote() const {
return m_ptr ? m_ptr->is_remote() : false;
}
actor_id actor::id() const {
return (m_ptr) ? m_ptr->id() : 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment