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 develop branch, built from commit 3785d1f795.
PrevUpHomeNext

Function template make_expression_function

boost::yap::make_expression_function

Synopsis

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


template<typename Expr> constexpr auto make_expression_function(Expr && expr);

Description

Returns a callable object that expr has been forwarded into. This is useful for using expressions as function objects.

Lvalue expressions are stored in the result by reference; rvalue expressions are moved into the result.

[Note] Note

make_expression_function() is only valid if Expr is an expression.


PrevUpHomeNext