3 <title>BOOST_PP_ENUM_TRAILING_PARAMS_Z
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_ENUM_TRAILING_PARAMS_Z
</b> macro generates a comma-separated list of parameters with a leading comma.
9 It reenters
<b>BOOST_PP_REPEAT
</b> with maximum efficiency.
13 <b>BOOST_PP_ENUM_TRAILING_PARAMS_Z
</b>(
<i>z
</i>,
<i>count
</i>,
<i>param
</i>)
19 The next available
<b>BOOST_PP_REPEAT
</b> dimension.
23 The number of parameters to generate.
24 Valid values range from
<i>0</i> to
<b>BOOST_PP_LIMIT_REPEAT
</b>.
28 The text of the parameter.
29 <b>BOOST_PP_ENUM_TRAILING_PARAMS_Z
</b> concatenates numbers ranging from
<i>0</i> to
<i>count
</i> -
<i>1</i>
30 to generate parameters.
35 This macro expands to the comma-separated sequence:
37 ,
<i>param
</i> ##
<i>0</i>,
<i>param
</i> ##
<i>1</i>, ...
<i>param
</i> ##
<i>count
</i> -
<i>1</i>
42 <li><a href=
"enum_trailing_params.html">BOOST_PP_ENUM_TRAILING_PARAMS
</a></li>
43 <li><a href=
"limit_repeat.html">BOOST_PP_LIMIT_REPEAT
</a></li>
47 <b>Header:
</b> <a href=
"../headers/repetition/enum_trailing_params.html"><boost/preprocessor/repetition/enum_trailing_params.hpp
></a>
50 <div id=
"sample"><pre>
51 #include
<<a href=
"../headers/repetition/enum_trailing_params.html">boost/preprocessor/repetition/enum_trailing_params.hpp
</a>>
52 #include
<<a href=
"../headers/repetition/repeat.html">boost/preprocessor/repetition/repeat.hpp
</a>>
54 #define MACRO(z, n, _) \
56 class
<a href=
"enum_trailing_params_z.html">BOOST_PP_ENUM_TRAILING_PARAMS_Z
</a>(z, n, class T) \
62 <a href=
"repeat.html">BOOST_PP_REPEAT
</a>(
2, MACRO, nil)
65 template
<class
> class X0 { };
66 template
<class, class T0
> class X1 { };
70 <div style=
"margin-left: 0px;">
71 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
72 </br><i>© Copyright Paul Mensonides
2002</i>
74 <div style=
"margin-left: 0px;">
75 <p><small>Distributed under the Boost Software License, Version
1.0. (See
76 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
78 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>