...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Destructor.
~basic_stream();
This function destroys the stream, cancelling any outstanding asynchronous operations associated with the socket as if by calling cancel.