Skip to content

Glossary: Software Design Patterns in C++

String stream

Also written: std::ostringstream, ostringstream, <sstream>

`std::ostringstream` takes `<<` like `cout` but collects the text in a string, which `.str()` returns. The `money` helper uses one.

Where the book teaches it

Related terms

std::setprecision