A call wrapper type to bind a cancellation slot of type CancellationSlot
to an object of type T
.
template< typename T, typename CancellationSlot> class cancellation_slot_binder
Name |
Description |
---|---|
The type of the function's argument. |
|
The type of the associated cancellation slot. |
|
The type of the function's first argument. |
|
The return type if a function. |
|
The type of the function's second argument. |
|
The type of the target object. |
Name |
Description |
---|---|
cancellation_slot_binder [constructor] |
Construct a cancellation slot wrapper for the specified object.
|
Obtain a reference to the target object. |
|
Obtain the associated cancellation slot. |
|
Forwarding function call operator. |
|
~cancellation_slot_binder [destructor] |
Destructor. |
Header: asio/bind_cancellation_slot.hpp
Convenience header: asio.hpp