3 <title>BOOST_PP_ENUM_SHIFTED_PARAMS
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_ENUM_SHIFTED_PARAMS
</b> macro generates a comma-separated, shifted list of parameters.
12 <b>BOOST_PP_ENUM_SHIFTED_PARAMS
</b>(
<i>count
</i>,
<i>param
</i>)
18 The number of parameters to generate.
19 Valid values range from
<i>0</i> to
<b>BOOST_PP_LIMIT_REPEAT
</b>.
23 The text of the parameter.
24 <b>BOOST_PP_ENUM_SHIFTED_PARAMS
</b> concatenates numbers ranging from
<i>1</i> to
<i>count
</i> -
<i>1</i>
25 to generate parameters.
30 This macro expands to the comma-separated sequence:
32 <i>param
</i> ##
<i>1</i>, ...
<i>param
</i> ##
<i>count
</i> -
<i>1</i>
36 This macro facilitates a typical usage of the library.
37 Shifted parameter lists are common in template metaprograms.
40 To use the
<i>z
</i> parameter passed from other macros that use
<b>BOOST_PP_REPEAT
</b>, see
<b>BOOST_PP_ENUM_SHIFTED_PARAMS_Z
</b>.
43 Previously, this macro could not be used recursively inside
<b>BOOST_PP_REPEAT
</b>.
44 This limitation no longer exists, as the library can automatically detect the next available repetition depth.
48 <li><a href=
"limit_repeat.html">BOOST_PP_LIMIT_REPEAT
</a></li>
49 <li><a href=
"enum_shifted_params_z.html">BOOST_PP_SHIFTED_ENUM_PARAMS_
<i>z
</i></a></li>
53 <b>Header:
</b> <a href=
"../headers/repetition/enum_shifted_params.html"><boost/preprocessor/repetition/enum_shifted_params.hpp
></a>
57 #include
<<a href=
"../headers/repetition/enum_shifted_params.html">boost/preprocessor/repetition/enum_shifted_params.hpp
</a>>
59 <a href=
"enum_shifted_params.html">BOOST_PP_ENUM_SHIFTED_PARAMS
</a>(
3, class T) // expands to class T1, class T2
62 <div style=
"margin-left: 0px;">
63 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
64 </br><i>© Copyright Paul Mensonides
2002</i>
66 <div style=
"margin-left: 0px;">
67 <p><small>Distributed under the Boost Software License, Version
1.0. (See
68 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
70 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>