...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Helper template to deduce the handler type from a CompletionToken, capture
a local copy of the handler, and then create an async_result
for the handler.
template< typename CompletionToken, typename Signature> struct async_completion
Name |
Description |
---|---|
The real handler type to be used for the asynchronous operation. |
Name |
Description |
---|---|
Constructor. |
Name |
Description |
---|---|
A copy of, or reference to, a real handler object. |
|
The result of the asynchronous operation's initiating function. |
Header: boost/asio/async_result.hpp
Convenience header: boost/asio.hpp