Quick Reference - C++ STL
For some introductory thoughts, see my blog post on the subject.
Streams are a serial character-based abstract interface to underlying storage of various types.
They don't support random access, but may support seeking.
Writing is performed with
« and reading with
» where the stream is always on the LHS.
Any class can be made streamable by providing appropriate overloads of these operators.
| Standard streams:
| File IO:
| String streams:
| Low-level buffers on which streams are built, base is