• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>Struct template listN</title>
6<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9<link rel="up" href="../../proto/reference.html#header.boost.proto.args_hpp" title="Header &lt;boost/proto/args.hpp&gt;">
10<link rel="prev" href="term.html" title="Struct template term">
11<link rel="next" href="functional/display_expr.html" title="Struct display_expr">
12</head>
13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14<table cellpadding="2" width="100%"><tr>
15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
16<td align="center"><a href="../../../../index.html">Home</a></td>
17<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20<td align="center"><a href="../../../../more/index.htm">More</a></td>
21</tr></table>
22<hr>
23<div class="spirit-nav">
24<a accesskey="p" href="term.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../proto/reference.html#header.boost.proto.args_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functional/display_expr.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="refentry">
27<a name="boost.proto.listN"></a><div class="titlepage"></div>
28<div class="refnamediv">
29<h2><span class="refentrytitle">Struct template listN</span></h2>
30<p>boost::proto::listN — <code class="computeroutput">proto::list1&lt;&gt;</code>, <code class="computeroutput">proto::list2&lt;&gt;</code>, etc.,
31          are type sequences for use as the 2<sup>nd</sup> parameter to the
32          <code class="computeroutput"><a class="link" href="expr.html" title="Struct template expr">proto::expr&lt;&gt;</a></code> or
33          <code class="computeroutput"><a class="link" href="basic_expr.html" title="Struct template basic_expr">proto::basic_expr&lt;&gt;</a></code> class templates.</p>
34</div>
35<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
36<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../proto/reference.html#header.boost.proto.args_hpp" title="Header &lt;boost/proto/args.hpp&gt;">boost/proto/args.hpp</a>&gt;
37
38</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span><span class="special">...</span> Arg<span class="special">&gt;</span>
39<span class="keyword">struct</span> <a class="link" href="listN.html" title="Struct template listN">listN</a> <span class="special">{</span>
40  <span class="comment">// types</span>
41  <span class="keyword">typedef</span> <span class="identifier">Arg</span><em class="replaceable"><code><span class="identifier">M</span></code></em> <a name="boost.proto.listN.childM"></a><span class="identifier">childM</span><span class="special">;</span>  <span class="comment">// For each <em class="replaceable"><code>M</code></em> in <em class="replaceable"><code>[0,N)</code></em></span>
42
43  <span class="comment">// public data members</span>
44  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">long</span> <span class="identifier">arity</span><span class="special">;</span>  <span class="comment">// <code class="computeroutput">= N;</code></span>
45<span class="special">}</span><span class="special">;</span></pre></div>
46<div class="refsect1">
47<a name="id-1.3.33.5.5.5.4"></a><h2>Description</h2>
48<p>
49            Type sequences, for use as the 2<sup>nd</sup> parameter to the
50            <code class="computeroutput"><a class="link" href="expr.html" title="Struct template expr">proto::expr&lt;&gt;</a></code> or
51            <code class="computeroutput"><a class="link" href="basic_expr.html" title="Struct template basic_expr">proto::basic_expr&lt;&gt;</a></code> class template. The
52            types in the sequence correspond to the children of a node in an expression tree.
53            There is no type literally named "<code class="computeroutput">listN</code>"; rather, there is
54            a set of types named
55            <code class="computeroutput">proto::list1&lt;&gt;</code>,
56            <code class="computeroutput">proto::list2&lt;&gt;</code>, etc.
57          </p>
58</div>
59</div>
60<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
61<td align="left"></td>
62<td align="right"><div class="copyright-footer">Copyright © 2008 Eric Niebler<p>
63        Distributed under the Boost Software License, Version 1.0. (See accompanying
64        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
65      </p>
66</div></td>
67</tr></table>
68<hr>
69<div class="spirit-nav">
70<a accesskey="p" href="term.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../proto/reference.html#header.boost.proto.args_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="functional/display_expr.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
71</div>
72</body>
73</html>
74