]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/preprocessor/doc/ref/tuple_to_array.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / tuple_to_array.html
CommitLineData
7c673cae
FG
1<html>
2 <head>
3 <title>BOOST_PP_TUPLE_TO_ARRAY</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_TO_ARRAY</b>
8macro
9converts a <i>tuple</i> to an <i>array</i>. </div>
10<h4> Usage </h4>
11<div class="code"> <b>BOOST_PP_TUPLE_TO_ARRAY</b>(<i>size,tuple</i>)<br>
12<br>
13or<br>
14<br>
15<b>BOOST_PP_TUPLE_TO_ARRAY</b>(<i>...</i>) <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a><br>
16</div>
17<h4> Arguments </h4>
18<dl>
19 <dt>size</dt>
20 <dd> The size of the <i>tuple</i>.&nbsp; Valid <i>tuple</i> sizes
21range from <i>1</i> to <b>BOOST_PP_LIMIT_TUPLE</b>. <br>
22 </dd>
23 <dt>tuple</dt>
24 <dd> The <i>tuple</i> to be converted.</dd>
25</dl>
26<h4>Remarks</h4>
27<div>
28 The <i>size</i> argument must be the actual size of the <i>tuple</i>.<br>
29<br>
30You can
31invoke the variadic version <a href="../topics/variadic_macros.html#VNotation" target="_self"><sup>(v)</sup></a> as BOOST_PP_TUPLE_TO_ARRAY(<i>tuple</i>) or
32BOOST_PP_TUPLE_TO_ARRAY(<i>size</i>,<i>tuple</i>).<a href="../headers/seq/to_array.html"></a>
33</div>
34<h4> Requirements </h4>
35<div> <b>Header:</b> &nbsp;<a href="../headers/tuple/to_array.html">&lt;boost/preprocessor/tuple/to_array.hpp&gt;</a>
36</div>
37<h4> Sample Code </h4>
38<div>
39<pre>#include &lt;<a href="../headers/tuple/to_array.html">boost/preprocessor/tuple/to_array.hpp</a>&gt;<br><br>#define TUPLE (a,b,c)<br><br><a href="tuple_to_array.html">BOOST_PP_TUPLE_TO_ARRAY</a>(3,TUPLE) // expands to (3, (a, b, c))<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_to_array.html">BOOST_PP_TUPLE_TO_ARRAY</a>(TUPLE) // expands to (3, (a, b, c))<br></pre>
40</div>
41<hr size="1">
42