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 to view this page for the latest version.
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