...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 |
|
Unconditionally invoke the stored completion handler. |
|
Conditionally invoke the stored completion handler. |
|
Copy Assignment (deleted) |
|
Discard the saved handler, if one exists. |
|
saved_handler [constructor] |
Default Constructor. |
~saved_handler [destructor] |
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.