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

Click here to view the latest version of this page.
PrevUpHomeNext

Struct template listN

boost::proto::listN — proto::list1<>, proto::list2<>, etc., are type sequences for use as the 2nd parameter to the proto::expr<> class template.

Synopsis

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

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

Description

Type sequences, for use as the 2nd parameter to the proto::expr<> class template. The types in the sequence correspond to the children of a node in an expression tree. There is no type literally named "listN"; rather, there is a set of types named proto::list1<>, proto::list2<>, etc.


PrevUpHomeNext