]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <title>BOOST_PP_TUPLE_ENUM</title> | |
4 | <link rel="stylesheet" type="text/css" href="../styles.css"> | |
5 | </head> | |
6 | <body> | |
7 | <div style="margin-left: 0px;"> The <b>BOOST_PP_TUPLE_ENUM</b> macro converts a <i>tuple</i> to its comma-separated elements. The comma-separated elements are in the form of <i>variadic data</i>. </div> | |
8 | <h4> Usage </h4> | |
9 | <div class="code"> <b>BOOST_PP_TUPLE_ENUM</b>(<i>size,tuple</i>)<br> | |
10 | <br> | |
11 | or<br> | |
12 | <br> | |
13 | <b>BOOST_PP_TUPLE_ENUM</b>(<i>...</i>) <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a><b></b><br> | |
14 | </div> | |
15 | <h4> Arguments </h4> | |
16 | <dl> | |
17 | <dt>size</dt> | |
18 | <dd> | |
19 | The size of the <i>tuple</i>. | |
20 | Valid <i>tuple</i> sizes range from <i>1</i> to <b>BOOST_PP_LIMIT_TUPLE</b>. <br> | |
21 | </dd> | |
22 | <dt>tuple</dt> | |
23 | <dd> The <i>tuple</i> whose elements are to be converted. </dd> | |
24 | </dl> | |
25 | <h4> Remarks </h4> | |
26 | <div> | |
27 | <br>You can | |
28 | invoke the variadic version <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a> as BOOST_PP_TUPLE_ENUM(<i>tuple</i>) or | |
29 | BOOST_PP_TUPLE_ENUM(<i>size</i>,<i>tuple</i>).<br> | |
30 | </div> | |
31 | <h4>See Also</h4> | |
32 | <ul> | |
33 | <li><a href="limit_tuple.html">BOOST_PP_LIMIT_TUPLE</a><br> | |
34 | </li> | |
35 | </ul> | |
36 | <h4> Requirements </h4> | |
37 | <div> <b>Header:</b> <a href="../headers/tuple/enum.html"><boost/preprocessor/tuple/enum.hpp></a> | |
38 | </div> | |
39 | <h4> Sample Code </h4> | |
40 | <div> | |
41 | <pre>#include <<a href="../headers/tuple/enum.html">boost/preprocessor/tuple/enum.hpp</a>><br><br>#define TUPLE (B,O,O,S,T)<br><br><a href="tuple_enum.html">BOOST_PP_TUPLE_ENUM</a>(5,TUPLE) // expands to B, O, O, S, T<br><br>// or for the variadic version <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a><br><br><a href="tuple_enum.html">BOOST_PP_TUPLE_ENUM</a>(TUPLE) // expands to B, O, O, S, T<br></pre> | |
42 | </div> | |
43 | <hr size="1"> | |
44 |