Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::context::callable_eval< Expr, Context, Arity > Struct Template Reference

A BinaryFunction that accepts a Proto expression and a callable context and calls the context with the expression tag and children as arguments, effectively fanning the expression out. More...

#include <proto_fwd.hpp>

Detailed Description

template<typename Expr, typename Context, long Arity>
struct boost::proto::context::callable_eval< Expr, Context, Arity >

A BinaryFunction that accepts a Proto expression and a callable context and calls the context with the expression tag and children as arguments, effectively fanning the expression out.

callable_eval<> requires that Context is a PolymorphicFunctionObject that can be invoked with Expr's tag and children as expressions, as follows:

context(Expr::proto_tag(), child_c<0>(expr), child_c<1>(expr), ...)

The documentation for this struct was generated from the following file: