...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
An invocable, nullary function object which holds a completion handler.
Defined in header <boost/beast/core/saved_handler.hpp>
class saved_handler
Name |
Description |
---|---|
Store a completion handler in the container. |
|
Returns true if *this contains a completion handler. |
|
Unconditionally invoke the stored completion handler. |
|
Conditionally invoke the stored completion handler. |
|
Copy Assignment (deleted) Move Assignment. |
|
Discard the saved handler, if one exists. |
|
Default Constructor. Copy Constructor (deleted) Move Constructor. |
|
Destructor. |
This container can hold a type-erased instance of any completion handler,
or it can be empty. When the container holds a value, the implementation
maintains an instance of net::executor_work_guard
for the handler's associated executor. Memory is dynamically allocated to
store the completion handler, and the allocator may optionally be specified.
Otherwise, the implementation uses the handler's associated allocator.
Convenience header <boost/beast/core.hpp>