]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/preprocessor/doc/ref/seq_for_each_r.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / seq_for_each_r.html
1 <html>
2 <head>
3 <title>BOOST_PP_SEQ_FOR_EACH_R</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_SEQ_FOR_EACH_R</b> macro repeats a macro for each element in a <i>seq</i>.&nbsp;
9 It reenters <b>BOOST_PP_FOR</b> with maximum efficiency.
10 </div>
11 <h4>
12 Usage
13 </h4>
14 <div class="code">
15 <b>BOOST_PP_SEQ_FOR_EACH_R</b>(<i>r</i>, <i>macro</i>, <i>data</i>, <i>seq</i>)
16 </div>
17 <h4>
18 Arguments
19 </h4>
20 <dl>
21 <dt>r</dt>
22 <dd>
23 The next available <b>BOOST_PP_FOR</b> repetition.
24 </dd>
25 <dt>macro</dt>
26 <dd>
27 A ternary macro of the form <i>macro</i>(<i>r</i>, <i>data</i>, <i>elem</i>).&nbsp;
28 This macro is expanded by <b>BOOST_PP_SEQ_FOR_EACH</b> with each element in <i>seq</i>.&nbsp;
29 It is expanded with the next available <b>BOOST_PP_FOR</b> repetition, the
30 auxiliary <i>data</i>, and the current element.
31 </dd>
32 <dt>data</dt>
33 <dd>
34 Auxiliary data passed to <i>macro</i>.
35 </dd>
36 <dt>seq</dt>
37 <dd>
38 The <i>seq</i> for which <i>macro</i> will be invoked on each element.
39 </dd>
40 </dl>
41 <h4>
42 Remarks
43 </h4>
44 <div>
45 This macro is a repetition construct.&nbsp; If <i>seq</i> is (<i>a</i>)(<i>b</i>)(<i>c</i>),
46 it expands to the sequence:
47 <div>
48 <i>macro</i>(<i>r</i>, <i>data</i>, <i>a</i>) <i>macro</i>(<i>r</i>, <i>data</i>,
49 <i>b</i>) <i>macro</i>(<i>r</i>, <i>data</i>, <i>c</i>)
50 </div>
51 </div>
52 <h4>
53 See Also
54 </h4>
55 <ul>
56 <li>
57 <a href="seq_for_each.html">BOOST_PP_SEQ_FOR_EACH</a></li>
58 </ul>
59 <h4>
60 Requirements
61 </h4>
62 <div>
63 <b>Header:</b> &nbsp;<a href="../headers/seq/for_each.html">&lt;boost/preprocessor/seq/for_each.hpp&gt;</a>
64 </div>
65 <hr size="1">
66 <div style="margin-left: 0px;">
67 <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
68 </br><i>© Copyright Paul Mensonides 2002</i>
69 </div>
70 <div style="margin-left: 0px;">
71 <p><small>Distributed under the Boost Software License, Version 1.0. (See
72 accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
73 copy at <a href=
74 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
75 </div>
76 </body>
77 </html>