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

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:

expr

The Proto expression to evaluate.

context

The context in which the expression should be evaluated.

Returns:

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


PrevUpHomeNext