3 <title>BOOST_PP_SEQ_FOR_EACH_I_R
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
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>.
It reenters
<b>BOOST_PP_FOR
</b> with maximum efficiency.
15 <b>BOOST_PP_SEQ_FOR_EACH_I_R
</b>(
<i>r
</i>,
<i>macro
</i>,
<i>data
</i>,
<i>seq
</i>)
23 The next available
<b>BOOST_PP_FOR
</b> repetition.
27 A macro of the form
<i>macro
</i>(
<i>r
</i>,
<i>data
</i>,
<i>i
</i>,
<i>elem
</i>).
28 This macro is expanded by
<b>BOOST_PP_SEQ_FOR_EACH_I
</b> with each element in
<i>seq
</i>.
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
35 Auxiliary data passed to
<i>macro
</i>.
39 The
<i>seq
</i> for which
<i>macro
</i> will be invoked on each element.
46 This macro is a repetition construct.
If
<i>seq
</i> is (
<i>a
</i>)(
<i>b
</i>)(
<i>c
</i>),
47 it expands to the sequence:
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>)
58 <a href=
"seq_for_each_i.html">BOOST_PP_SEQ_FOR_EACH_I
</a></li>
64 <b>Header:
</b> <a href=
"../headers/seq/for_each_i.html"><boost/preprocessor/seq/for_each_i.hpp
></a>
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>
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
75 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>