boost::parser::if_
// In header: <boost/parser/parser.hpp> template<typename Predicate> constexpr auto if_(Predicate pred);
Returns an
that fails if the given predicate if_directive
pred
is false
, and otherwise, applies another parser. For instance, in if_(pred)[p]
, p
is only applied if pred
is true.