Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Create Components from Attributes

Define a Custom Attribute Mapping for a Parser
Define a Custom Attribute Mapping for a Generator

Spirit supports the creation of a default parser or a default generator from a given attribute type. It implements a minimal set of predefined mappings from different attribute types to parsers and generators (for a description of the predefined mappings see Additional Attribute Requirements for Parsers and Additional Attribute Requirements for Generators). The customization points described in this section (create_parser and create_generator) can be specialized to define additional mappings for custom data types.