Struct template otherwiseboost::proto::otherwise —
Syntactic sugar for Synopsistemplate<typename Fun> struct otherwise : proto::when< proto::_, Fun > { }; Description
Use
// Count the terminals in an expression tree. // Must be invoked with initial state == mpl::int_<0>(). struct CountLeaves : proto::or_< proto::when<proto::terminal<proto::_>, mpl::next<proto::_state>()>, proto::otherwise<proto::fold<proto::_, proto::_state, CountLeaves> > > {};
|