...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::separate
// In header: <boost/parser/parser.hpp> constexpr separate_directive separate;
The separate_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 prevents each subparser's attribute from merging with any other subparser's attribute.