Apache C++ Standard Library User's Guide
Chapter 36: Stream Storage for Private Use
36.1 Adding Data to a Stream
36.2 An Example: Storing a Date Format String
36.3 Another Look at the Date Format String
36.4 Caveat