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

PrevUpHomeNext

Global merge

boost::parser::merge

Synopsis

// In header: <boost/parser/parser.hpp>

constexpr merge_directive merge;

Description

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.


PrevUpHomeNext