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 eval

boost::proto::eval — Evaluate a given Proto expression with a given context.

Synopsis

// In header: <boost/proto/eval.hpp>


template<typename Expr, typename Context> 
  typename proto::result_of::eval< Expr, Context >::type 
  eval(Expr & expr, Context & context);
template<typename Expr, typename Context> 
  typename proto::result_of::eval< Expr, Context >::type 
  eval(Expr & expr, Context const & context);

Description

Parameters:

context

The context in which the expression should be evaluated.

expr

The Proto expression to evaluate.

Returns:

typename Context::template eval<Expr>()(expr, context)


PrevUpHomeNext