Polymorphic wrapper for completion handlers.
template< typename... Signatures> class any_completion_handler
Name |
Description |
---|---|
any_completion_handler [constructor] |
Construct an any_completion_handler in an empty state, without
a target object. |
Get the associated allocator. |
|
Get the associated cancellation slot. |
|
Test if the polymorphic wrapper is empty. |
|
Test if the polymorphic wrapper is non-empty. |
|
Function call operator. |
|
Move-assign an any_completion_handler from another. |
|
Swap the content of an any_completion_handler with another. |
|
~any_completion_handler [destructor] |
Destructor. |
Name |
Description |
---|---|
Inequality operator. |
|
Equality operator. |
The any_completion_handler
class template is a polymorphic wrapper for completion handlers that propagates
the associated executor, associated allocator, and associated cancellation
slot through a type-erasing interface.
When using any_completion_handler
,
specify one or more completion signatures as template parameters. These will
dictate the arguments that may be passed to the handler through the polymorphic
interface.
Typical uses for any_completion_handler
include:
Header: asio/any_completion_handler.hpp
Convenience header: asio.hpp