PrevUpHomeNext

Function template cond

boost::yap::cond

Synopsis

// In header: <boost/yap/algorithm.hpp>


template<typename Expr> decltype(auto) cond(Expr && expr);

Description

Returns the condition expression in an if_else expression.

Equivalent to get(expr, 0_c).

[Note] Note

cond() is only valid if Expr is an expr_kind::if_else expression.


PrevUpHomeNext