Apache C++ Standard Library User's Guide
Chapter 32: Input and Output of User Types
32.1 A Note on User-Defined Types
32.2 An Example with a User-Defined Type
32.3 A Simple Extractor and Inserter for the Example
32.4 Improved Extractors and Inserters
32.5 More Improved Extractors and Inserters
32.5.1 Applying the Recommendations to the Example
32.5.2 An Afterthought
32.6 Patterns for Extractors and Inserters of User-Defined Types