Boost C++ 库

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

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

结构模板 listN

boost::proto::listN — proto::list1<>proto::list2<> 等,是作为 proto::expr<>proto::basic_expr<> 类模板的第二个参数使用的类型序列。

提要

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

template<typename... Arg> 
struct listN {
  // types
  typedef ArgM childM;  // For each M in [0,N)

  // public data members
  static const long arity;  // = N;
};

描述

类型序列,用作 proto::expr<>proto::basic_expr<> 类模板的第二个参数。序列中的类型对应于表达式树中节点的子节点。并没有一个字面名为 "listN" 的类型;而是一组名为 proto::list1<>proto::list2<> 等的类型。


PrevUpHomeNext