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 is the documentation for a snapshot of the develop branch, built from commit 2daa88693b.
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