Apache C++ Standard Library User's Guide
Chapter 31: Input and Output In Memory
31.1 About String Streams
31.2 The Internal Buffer
31.3 The Open Modes