• 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>Macro BOOST_PROTO_a</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.repeat_hpp" title="Header &lt;boost/proto/repeat.hpp&gt;">
10<link rel="prev" href="BOOST_PROTO_ref_a.html" title="Macro BOOST_PROTO_ref_a">
11<link rel="next" href="boost/proto/tag/terminal.html" title="Struct terminal">
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="BOOST_PROTO_ref_a.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="proto/reference.html#header.boost.proto.repeat_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="boost/proto/tag/terminal.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
25</div>
26<div class="refentry">
27<a name="BOOST_PROTO_1_3_33_5_37_15"></a><div class="titlepage"></div>
28<div class="refnamediv">
29<h2><span class="refentrytitle">Macro BOOST_PROTO_a</span></h2>
30<p>BOOST_PROTO_a —
31      Generates sequences like
32      <code class="computeroutput">
33        a<sub>0</sub>,
34        a<sub>1</sub>, …
35        a<sub>N-1</sub>
36      </code>.
37    </p>
38</div>
39<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
40<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.repeat_hpp" title="Header &lt;boost/proto/repeat.hpp&gt;">boost/proto/repeat.hpp</a>&gt;
41
42</span>BOOST_PROTO_a(N)</pre></div>
43<div class="refsect1">
44<a name="id-1.3.33.5.39.17.4"></a><h2>Description</h2>
45<p>
46        Intended for use with the <code class="computeroutput"><a class="link" href="BOOST_PROTO_REPEAT.html" title="Macro BOOST_PROTO_REPEAT">BOOST_PROTO_REPEAT</a>()</code>
47        and <code class="computeroutput"><a class="link" href="BOOST_PROTO_LOCAL_ITERATE.html" title="Macro BOOST_PROTO_LOCAL_ITERATE">BOOST_PROTO_LOCAL_ITERATE</a>()</code> macros.
48      </p>
49<p>
50        <code class="computeroutput">BOOST_PROTO_a(<em class="replaceable"><code>N</code></em>)</code> generates sequences like:
51      </p>
52<p>
53        </p>
54<pre class="programlisting"><span class="identifier">a</span><sub><span class="number">0</span></sub><span class="special">,</span> <span class="identifier">a</span><sub><span class="number">1</span></sub><span class="special">,</span> … <span class="identifier">a</span><sub><span class="identifier">N</span><span class="special">-</span><span class="number">1</span></sub></pre>
55<p>
56      </p>
57</div>
58</div>
59<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
60<td align="left"></td>
61<td align="right"><div class="copyright-footer">Copyright © 2008 Eric Niebler<p>
62        Distributed under the Boost Software License, Version 1.0. (See accompanying
63        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>)
64      </p>
65</div></td>
66</tr></table>
67<hr>
68<div class="spirit-nav">
69<a accesskey="p" href="BOOST_PROTO_ref_a.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="proto/reference.html#header.boost.proto.repeat_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="boost/proto/tag/terminal.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
70</div>
71</body>
72</html>
73