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

Click here to view the latest version of this page.

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.