...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Base class for all I/O objects.
template< typename IoObjectService> class basic_io_object
Name |
Description |
---|---|
The type of the executor associated with the object. |
|
The underlying implementation type of I/O object. |
|
The type of the service that will be used to provide I/O operations. |
Name |
Description |
---|---|
Get the executor associated with the object. |
|
(Deprecated: Use get_executor().) Get the io_context associated with the object. |
|
(Deprecated: Use get_executor().) Get the io_context associated with the object. |
Name |
Description |
---|---|
basic_io_object [constructor] |
Construct a basic_io_object. |
Get the underlying implementation of the I/O object. |
|
Get the service associated with the I/O object. |
|
Move-assign a basic_io_object. |
|
~basic_io_object [destructor] |
Protected destructor to prevent deletion through this type. |
All I/O objects are non-copyable. However, when using C++0x, certain I/O objects do support move construction and move assignment.
Header: boost/asio/basic_io_object.hpp
Convenience header: boost/asio.hpp