• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2	<head>
3		<title>BOOST_PP_SEQ_FOR_EACH_I_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_I_R</b> macro repeats a macro for each element in
9			a <i>seq</i>.&nbsp; 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_I_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 macro of the form <i>macro</i>(<i>r</i>, <i>data</i>, <i>i</i>, <i>elem</i>).&nbsp;
28				This macro is expanded by <b>BOOST_PP_SEQ_FOR_EACH_I</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>, the index of the current element, and the current
31				element.
32			</dd>
33			<dt>data</dt>
34			<dd>
35				Auxiliary data passed to <i>macro</i>.
36			</dd>
37			<dt>seq</dt>
38			<dd>
39				The <i>seq</i> for which <i>macro</i> will be invoked on each element.
40			</dd>
41		</dl>
42		<h4>
43			Remarks
44		</h4>
45		<div>
46			This macro is a repetition construct.&nbsp; If <i>seq</i> is (<i>a</i>)(<i>b</i>)(<i>c</i>),
47			it expands to the sequence:
48			<div>
49				<i>macro</i>(<i>r</i>, <i>data</i>, <i>0</i>, <i>a</i>) <i>macro</i>(<i>r</i>, <i>data</i>,
50				<i>1</i>, <i>b</i>) <i>macro</i>(<i>r</i>, <i>data</i>, <i>2</i>, <i>c</i>)
51			</div>
52		</div>
53		<h4>
54			See Also
55		</h4>
56		<ul>
57			<li>
58				<a href="seq_for_each_i.html">BOOST_PP_SEQ_FOR_EACH_I</a></li>
59		</ul>
60		<h4>
61			Requirements
62		</h4>
63		<div>
64			<b>Header:</b> &nbsp;<a href="../headers/seq/for_each_i.html">&lt;boost/preprocessor/seq/for_each_i.hpp&gt;</a>
65		</div>
66	<hr size="1">
67	<div style="margin-left: 0px;">
68		<i>� Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
69		</br><i>� Copyright Paul Mensonides 2002</i>
70	</div>
71	<div style="margin-left: 0px;">
72		<p><small>Distributed under the Boost Software License, Version 1.0. (See
73		accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
74		copy at <a href=
75		"http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
76	</div>
77	</body>
78</html>
79