| Home | Libraries | People | FAQ | More

## Function template cond

boost::yap::cond

## Synopsis

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

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

## Description

Returns the condition expression in an if_else expression.

Equivalent to `get(expr, 0_c)`.

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