...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A completion token adapter used to specify that the completion handler arguments should be combined into a single tuple argument.
template< typename CompletionToken> class as_tuple_t
Name |
Description |
---|---|
Tag type used to prevent the "default" constructor from being used for conversions. |
|
Adapts an executor to add the as_tuple_t completion token as the default. |
Name |
Description |
---|---|
as_default_on [static] |
Function helper to adapt an I/O object to use as_tuple_t as its default completion token type. |
as_tuple_t [constructor] |
Default constructor. |
Name |
Description |
---|---|
The as_tuple_t
class is used to indicate that any arguments to the completion handler should
be combined and passed as a single tuple argument. The arguments are first
moved into a std::tuple
and that tuple is then passed to
the completion handler.
Header: boost/asio/as_tuple.hpp
Convenience header: boost/asio.hpp