std::istrstream::~istrstream (3) - Linux Manuals
std::istrstream::~istrstream: std::istrstream::~istrstream
NAME
std::istrstream::~istrstream - std::istrstream::~istrstream
Synopsis
virtual ~istrstream();
Destroys a std::istrstream object, which also destroys the member std::strstreambuf.
Parameters
(none)
Notes
The constructors of std::istrstream do not create the underlying std::strstreambuf in dynamically allocated mode, so the memory leaks that are possible with std::ostrstream::~ostrstream or std::strstream::~strstream do not apply.
Example
// Run this code
Output: