C++ String Streams
String streams are similar to the
Three main classes are available in
- stringstream - allows input and output
- istringstream - allows input only
- ostringstream - allows output only
String streams are actually subclasses of iostreams, so all of the functions available for iostreams are also available for stringstream. See the C++ I/O functions for more information.
In addition, string streams also supply the following functions:
Constructors | create new string streams |
Operators | read from and write to string streams |
rdbuf | get the buffer for a string stream |
str | get or set the stream's string |
No comments:
Post a Comment