For defining a map of Rule/Transform pairs for use with when<T, external_transform>
to make transforms external to the grammar.
More...
#include <when.hpp>
Classes | |
struct | when |
Public Types | |
typedef mpl::map < BOOST_PP_ENUM_PARAMS(BOOST_MPL_LIMIT_MAP_SIZE, T)> | map_type |
For defining a map of Rule/Transform pairs for use with when<T, external_transform>
to make transforms external to the grammar.
The following code defines a grammar with a couple of external transforms. It also defines an action_map that maps from rules to transforms. It then passes that transforms map at the Data parameter to the grammar. In this way, the behavior of the grammar can be modified post-hoc by passing a different action_map.
typedef mpl::map<BOOST_PP_ENUM_PARAMS(BOOST_MPL_LIMIT_MAP_SIZE, T)> boost::proto::external_transforms<>::map_type |