std::strstream (3) - Linux Manuals
std::strstream: std::strstream
NAME
std::strstream - std::strstream
Synopsis
Defined in header <strstream>
class strstream : public std::iostream (deprecated in C++98)
The class strstream implements input and output operations on array-backed streams. It essentially wraps a raw array I/O device implementation (std::strstreambuf) into the higher-level interface of std::basic_iostream.
The typical implementation of strstream holds only one non-derived data member: an object of type std::strstreambuf.
Notes
After any call to str(), a call to freeze(false) is required to allow the destructor to deallocate the buffer as necessary.
Before any call to str() that uses the result as a C string, the buffer must be null-terminated, typically with std::ends.
strstream has been deprecated since C++98, std::stringstream and boost::iostreams::array are the recommended replacements.
Member functions
constructor (public member function)
destructor destructs a strstream, optionally deallocating the buffer
[virtual]
rdbuf (public member function)
str (public member function)
freeze (public member function)
pcount (public member function)
Inherited from std::basic_istream
Member functions
Formatted input
operator>> (public member function of std::basic_istream<CharT,Traits>)
Unformatted input
get (public member function of std::basic_istream<CharT,Traits>)
peek (public member function of std::basic_istream<CharT,Traits>)
unget (public member function of std::basic_istream<CharT,Traits>)
putback (public member function of std::basic_istream<CharT,Traits>)
getline (public member function of std::basic_istream<CharT,Traits>)
ignore (public member function of std::basic_istream<CharT,Traits>)
read (public member function of std::basic_istream<CharT,Traits>)
readsome (public member function of std::basic_istream<CharT,Traits>)
gcount (public member function of std::basic_istream<CharT,Traits>)
Positioning
tellg (public member function of std::basic_istream<CharT,Traits>)
seekg (public member function of std::basic_istream<CharT,Traits>)
Miscellaneous
sync (public member function of std::basic_istream<CharT,Traits>)
Member classes
sentry (public member class of std::basic_istream<CharT,Traits>)
Inherited from std::basic_ostream
Member functions
Formatted output
operator<< (public member function of std::basic_ostream<CharT,Traits>)
Unformatted output
put (public member function of std::basic_ostream<CharT,Traits>)