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 b9ab49fc70.
PrevUpHomeNext

Function template as_expr

boost::yap::as_expr

Synopsis

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


template<template< expr_kind, class > class ExprTemplate, typename T> 
  decltype(auto) constexpr as_expr(T && t);

Description

Returns an expression formed from t as follows:

  • If t is an expression, t is forwarded to the caller.

  • Otherwise, t is wrapped in a terminal expression.


PrevUpHomeNext