...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::if_directive
// In header: <boost/parser/parser.hpp> template<typename Predicate> struct if_directive { // public member functions template<typename Parser2> constexpr auto operator[](parser_interface< Parser2 >) const noexcept; // public data members Predicate pred_; };
Represents a sequence parser, the first parser of which is an epsilon_parser
with predicate, as a directive (e.g. if_(pred)[p]
).
if_directive
public member functionstemplate<typename Parser2> constexpr auto operator[](parser_interface< Parser2 > rhs) const noexcept;