]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/preprocessor/doc/ref/local_iterate.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / local_iterate.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3 <title>BOOST_PP_LOCAL_ITERATE</title>
4 <link rel="stylesheet" type="text/css" href="../styles.css">
5</head>
6<body>
7 <div style="margin-left: 0px;">
8 The <b>BOOST_PP_LOCAL_ITERATE</b> macro initiates a <i>local-iteration</i>.
9 </div>
10 <h4>Usage</h4>
11 <div class="code">
12 #include <b>BOOST_PP_LOCAL_ITERATE</b>()
13 </div>
14 <h4>Remarks</h4>
15 <div>
16 This macro causes the user-defined macro <b>BOOST_PP_LOCAL_MACRO</b> to be expanded vertically with values in the range specified by <b>BOOST_PP_LOCAL_LIMITS</b>.
17 </div>
18 <h4>See Also</h4>
19 <ul>
20 <li><a href="local_limits.html">BOOST_PP_LOCAL_LIMITS</a></li>
21 <li><a href="local_macro.html">BOOST_PP_LOCAL_MACRO</a></li>
22 </ul>
23 <h4>Requirements</h4>
24 <div>
25 <b>Header:</b> &nbsp;<a href="../headers/iteration/local.html">&lt;boost/preprocessor/iteration/local.hpp&gt;</a>
26 </div>
27 <h4>Sample Code</h4>
28<div><pre>
29#include &lt;<a href="../headers/iteration/local.html">boost/preprocessor/iteration/local.hpp</a>&gt;
30
31template&lt;int&gt; struct sample;
32
33#define <a href="local_macro.html">BOOST_PP_LOCAL_MACRO</a>(n) \
34 template&lt;&gt; struct sample&lt;n&gt; { \
35 enum { value = n }; \
36 }; \
37 /**/
38
39#define <a href="local_limits.html">BOOST_PP_LOCAL_LIMITS</a> (1, 5)
40
41#include <a href="local_iterate.html">BOOST_PP_LOCAL_ITERATE</a>()
42/* expands to...
43template&lt;&gt; struct sample&lt;1&gt; { enum { value = 1 }; };
44template&lt;&gt; struct sample&lt;2&gt; { enum { value = 2 }; };
45template&lt;&gt; struct sample&lt;3&gt; { enum { value = 3 }; };
46template&lt;&gt; struct sample&lt;4&gt; { enum { value = 4 }; };
47template&lt;&gt; struct sample&lt;5&gt; { enum { value = 5 }; };
48*/
49</pre></div>
50 <hr size="1">
51 <div style="margin-left: 0px;">
52