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_terminal

boost::yap::make_terminal

Synopsis

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


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

Description

Makes a new terminal expression instantiated from the expression template ExprTemplate, with the given value as its sole element.

[Note] Note

make_terminal() is only valid if T is not an expression.


PrevUpHomeNext