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 make_expression

boost::yap::make_expression

Synopsis

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


template<template< expr_kind, class > class ExprTemplate, expr_kind Kind, 
         typename... T> 
  auto make_expression(T &&... t);

Description

Makes a new expression instantiated from the expression template ExprTemplate, of kind Kind, with the given values as its elements.

For each parameter P:

  • If P is an expression, P is moved into the result if P is an rvalue and captured by reference into the result otherwise.

  • Otherwise, P is wrapped in a terminal expression.

[Note] Note

make_expression() is only valid if the number of parameters passed is appropriate for Kind.


PrevUpHomeNext