asio-grpc v3.4.3
Asynchronous gRPC with Asio/unified executors
|
Shared pointer-like object for reactors. More...
#include <agrpc/reactor_ptr.hpp>
Friends | |
bool | operator== (const ReactorPtr &lhs, const ReactorPtr &rhs) noexcept |
Check whether two pointers refer to the same reactor. | |
bool | operator!= (const ReactorPtr &lhs, const ReactorPtr &rhs) noexcept |
Check whether two pointers do not refer to the same reactor. | |
void | swap (ReactorPtr &lhs, ReactorPtr &rhs) noexcept |
Swap the contents of two ReactorPtr. | |
Shared pointer-like object for reactors.
This smart pointer guarantees that the reactor remains alive until OnDone is called and all user-held objects of this pointer are destroyed.
Reactor | The reactor type like agrpc::ServerUnaryReactor , agrpc::ClientUnaryReactor or a class derived from their base equivalents. |