...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Destructor.
~stream();
Destroys the stream and all associated resources.
A stream object must not be destroyed while there are pending asynchronous operations associated with it.