PrevUpHomeNext

Function template if_

boost::parser::if_

Synopsis

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


template<typename Predicate> constexpr auto if_(Predicate pred);

Description

Returns an if_directive that fails if the given predicate pred is false, and otherwise, applies another parser. For instance, in if_(pred)[p], p is only applied if pred is true.


PrevUpHomeNext