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 master branch, built from commit 064f557086.
PrevUpHomeNext

Function template cond

boost::yap::cond

Synopsis

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


template<typename Expr> constexpr 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