Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

结构模板求值 - Boost C++ 函数库
PrevUpHomeNext

结构模板求值

boost::proto::result_of::eval — 一个元函数,用于根据给定的 ExprContext 类型计算 proto::eval() 的返回类型。

提要

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

template<typename Expr, typename Context> 
struct eval {
  // types
  typedef typename Context::template eval< Expr >::result_type type;
};

PrevUpHomeNext