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
This version of Boost is under active development. You are currently in the develop branch. The current version is 1.90.0.
boost::parser::if_directive
// In header: <boost/parser/parser.hpp> template<typename Predicate> struct if_directive { // public member functions template<typename Parser2> 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> auto operator[](parser_interface< Parser2 > rhs) const noexcept;