Apache C++ Standard Library User's Guide
Chapter 26: Building Your Own Facet Class
26.1 An Example of Formatting Phone Numbers
26.2 A Phone Number Class
26.3 A Phone Number Formatting Facet Class
26.4 An Inserter for Phone Numbers
26.5 The Phone Number Facet Class Revisited
26.5.1 Adding Data Members
26.5.2 Adding Country Codes
26.6 An Example of a Derived Facet Class
26.7 Using Phone Number Facets
26.8 Formatting Phone Numbers
26.9 Improving the Inserter Function
26.9.1 Primitive Caching
26.9.2 Registration of a Callback Function
26.9.3 Improving the Inserter