3 <title>BOOST_PP_LOCAL_ITERATE
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_LOCAL_ITERATE
</b> macro initiates a
<i>local-iteration
</i>.
12 #include
<b>BOOST_PP_LOCAL_ITERATE
</b>()
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>.
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>
25 <b>Header:
</b> <a href=
"../headers/iteration/local.html"><boost/preprocessor/iteration/local.hpp
></a>
29 #include
<<a href=
"../headers/iteration/local.html">boost/preprocessor/iteration/local.hpp
</a>>
31 template
<int
> struct sample;
33 #define
<a href=
"local_macro.html">BOOST_PP_LOCAL_MACRO
</a>(n) \
34 template
<> struct sample
<n
> { \
39 #define
<a href=
"local_limits.html">BOOST_PP_LOCAL_LIMITS
</a> (
1,
5)
41 #include
<a href=
"local_iterate.html">BOOST_PP_LOCAL_ITERATE
</a>()
43 template
<> struct sample
<1> { enum { value =
1 }; };
44 template
<> struct sample
<2> { enum { value =
2 }; };
45 template
<> struct sample
<3> { enum { value =
3 }; };
46 template
<> struct sample
<4> { enum { value =
4 }; };
47 template
<> struct sample
<5> { enum { value =
5 }; };
51 <div style=
"margin-left: 0px;">
52 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
53 </br><i>© Copyright Paul Mensonides
2002</i>
55 <div style=
"margin-left: 0px;">
56 <p><small>Distributed under the Boost Software License, Version
1.0. (See
57 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
59 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>