std::istrstream::~istrstream (3) - Linux Manuals
std::istrstream::~istrstream: std::istrstream::~istrstream
Command to display std::istrstream::~istrstream
manual in Linux: $ man 3 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
#include <strstream>
#include <iostream>
int main()
{
{
std::istrstream s("1.234");
double d;
s >> d;
std::cout << d << '\n';
} // destructor called
}
Output:
1.234
Pages related to std::istrstream::~istrstream
- std::istrstream::istrstream (3) - std::istrstream::istrstream
- std::istrstream::rdbuf (3) - std::istrstream::rdbuf
- std::istrstream::str (3) - std::istrstream::str
- std::istrstream (3) - std::istrstream
- std::istream (3) - std::basic_istream
- std::istream_iterator (3) - std::istream_iterator
- std::istream_iterator<T,CharT,Traits,Distance>::istream_iterator (3) - std::istream_iterator<T,CharT,Traits,Distance>::istream_iterator
- std::istream_iterator<T,CharT,Traits,Distance>::operator*,operator-> (3) - std::istream_iterator<T,CharT,Traits,Distance>::operator*,operator->
- std::istream_iterator<T,CharT,Traits,Distance>::operator++,operator++(int) (3) - std::istream_iterator<T,CharT,Traits,Distance>::operator++,operator++(int)
- std::istream_iterator<T,CharT,Traits,Distance>::~istream_iterator (3) - std::istream_iterator<T,CharT,Traits,Distance>::~istream_iterator
- std::istreambuf_iterator (3) - std::istreambuf_iterator
- std::istreambuf_iterator<CharT,Traits>::equal (3) - std::istreambuf_iterator<CharT,Traits>::equal
- std::istreambuf_iterator<CharT,Traits>::istreambuf_iterator (3) - std::istreambuf_iterator<CharT,Traits>::istreambuf_iterator