Boost C++ 库

...世界上最受尊敬、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

Struct 模板下标 - Boost C++ 函数库
PrevUpHomeNext

Struct 模板下标

boost::proto::subscript — 用于生成下标表达式类型的元函数,匹配下标表达式的语法元素,以及一个 PrimitiveTransform,它将分派到 proto::pass_through<> 转换。

提要

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

template<typename T, typename U> 
struct subscript :  proto::transform< subscript<T, U> > {
  // types
  typedef proto::expr< proto::tag::subscript, proto::list2< T, U > >       type;         
  typedef proto::basic_expr< proto::tag::subscript, proto::list2< T, U > > proto_grammar;

  // member classes/structs/unions
  template<typename Expr, typename State, typename Data> 
  struct impl :
     proto::pass_through<subscript>::template impl<Expr, State, Data>
  {
  };
};

描述


PrevUpHomeNext