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 an old version of boost. Click here for the latest Boost documentation.
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) 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