std::strstream::~strstream (3) - Linux Manuals
std::strstream::~strstream: std::strstream::~strstream
NAME
std::strstream::~strstream - std::strstream::~strstream
Synopsis
virtual ~strstream();
Destroys a std::strstream object, which also destroys the member std::strstreambuf, which may call the deallocation function if the underlying buffer was dynamically-allocated and not frozen.
Parameters
(none)
Notes
If str() was called on a dynamic strstream and freeze(false) was not called after that, this destructor leaks memory.
Example
// Run this code
Output: