Boost C++ Libraries

...one 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.
PrevUpHomeNext

Store Parsed Attribute Values into a Container (Qi)

Determine the Type to be Stored in a Container (Qi)
Store a Parsed Attribute Value into a Container (Qi)

In order to customize Spirit to accept a given data type as a container for elements parsed by any of the repetitive parsers (Kleene, Plus, List, and Repeat) two attribute customization points have to be specialized: traits::container_value and traits::push_back_container. This section describes both.


PrevUpHomeNext