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 eval

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

Synopsis

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