]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/preprocessor/doc/ref/enum_trailing_params.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / enum_trailing_params.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3 <title>BOOST_PP_ENUM_TRAILING_PARAMS</title>
4 <link rel="stylesheet" type="text/css" href="../styles.css">
5</head>
6<body>
7 <div style="margin-left: 0px;">
8 The <b>BOOST_PP_ENUM_TRAILING_PARAMS</b> macro generates a comma-separated list of parameters with a leading comma.
9 </div>
10 <h4>Usage</h4>
11 <div class="code">
12 <b>BOOST_PP_ENUM_TRAILING_PARAMS</b>(<i>count</i>, <i>param</i>)
13 </div>
14 <h4>Arguments</h4>
15 <dl>
16 <dt>count</dt>
17 <dd>
18 The number of parameters to generate.&nbsp;
19 Valid values range from <i>0</i> to <b>BOOST_PP_LIMIT_REPEAT</b>.
20 </dd>
21 <dt>param</dt>
22 <dd>
23 The text of the parameter.&nbsp;
24 <b>BOOST_PP_ENUM_TRAILING_PARAMS</b> concatenates numbers ranging from <i>0</i> to <i>count</i> - <i>1</i>
25 to generate parameters.
26 </dd>
27 </dl>
28 <h4>Remarks</h4>
29 <div>
30 This macro expands to the comma-separated sequence:
31 <div>
32 , <i>param</i> ## <i>0</i>, <i>param</i> ## <i>1</i>, ... <i>param</i> ## <i>count</i> - <i>1</i>
33 </div>
34 </div>
35 <div>
36 To use the <i>z</i> parameter passed from other macros that use <b>BOOST_PP_REPEAT</b>, see <b>BOOST_PP_ENUM_TRAILING_PARAMS_Z</b>.
37 </div>
38 <h4>See Also</h4>
39 <ul>
40 <li><a href="enum_trailing_params_z.html">BOOST_PP_ENUM_TRAILING_PARAMS_Z</a></li>
41 <li><a href="limit_repeat.html">BOOST_PP_LIMIT_REPEAT</a></li>
42 </ul>
43 <h4>Requirements</h4>
44 <div>
45 <b>Header:</b> &nbsp;<a href="../headers/repetition/enum_trailing_params.html">&lt;boost/preprocessor/repetition/enum_trailing_params.hpp&gt;</a>
46 </div>
47 <h4>Sample Code</h4>
48<div><pre>
49#include &lt;<a href="../headers/repetition/enum_trailing_params.html">boost/preprocessor/repetition/enum_trailing_params.hpp</a>&gt;
50
51class X <a href="enum_trailing_params.html">BOOST_PP_ENUM_TRAILING_PARAMS</a>(2, class T)
52 // expands to class X, class T0, class T1, class T2
53</pre></div>
54 <hr size="1">
55 <div style="margin-left: 0px;">
56