3 <title>BOOST_PP_SEQ_FOR_EACH_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_R
</b> macro repeats a macro for each element in a
<i>seq
</i>.
9 It reenters
<b>BOOST_PP_FOR
</b> with maximum efficiency.
15 <b>BOOST_PP_SEQ_FOR_EACH_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 ternary macro of the form
<i>macro
</i>(
<i>r
</i>,
<i>data
</i>,
<i>elem
</i>).
28 This macro is expanded by
<b>BOOST_PP_SEQ_FOR_EACH
</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>, and the current element.
34 Auxiliary data passed to
<i>macro
</i>.
38 The
<i>seq
</i> for which
<i>macro
</i> will be invoked on each element.
45 This macro is a repetition construct.
If
<i>seq
</i> is (
<i>a
</i>)(
<i>b
</i>)(
<i>c
</i>),
46 it expands to the sequence:
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>)
57 <a href=
"seq_for_each.html">BOOST_PP_SEQ_FOR_EACH
</a></li>
63 <b>Header:
</b> <a href=
"../headers/seq/for_each.html"><boost/preprocessor/seq/for_each.hpp
></a>
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>
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
74 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>