...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::parser::merge
// In header: <boost/parser/parser.hpp> constexpr merge_directive merge;
The merge_directive
, whose operator[]
returns a parser_interface<P2>
, from a given parser of type parser_interface<P>
, where P
is a seq_parser
. P2
is the same as P
, except that its CombiningGroups
template parameter is replaced with a tag type that causes the subparser's attributes to be merged into a single attribute.