]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/preprocessor/doc/ref/array_enum.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / array_enum.html
1 <html>
2 <head>
3 <title>BOOST_PP_ARRAY_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_ARRAY_ENUM</b> macro converts an <i>array</i> to its comma-separated elements. The comma-separated elements are in the form of <i>variadic data</i>.<br>
8 </div>
9 <h4> Usage </h4>
10 <div class="code"> <b>BOOST_PP_ARRAY_ENUM</b>(<i>array</i>) </div>
11 <h4> Arguments </h4>
12 <dl>
13 <dt>array</dt>
14 <dd> The <i>array</i> whose elements are to be converted. </dd>
15 </dl>
16 <h4> Remarks </h4>
17 <div> This macro expands to a comma-separated list of the elements in <i>array</i>.&nbsp;
18 For example, <b>BOOST_PP_ARRAY_ENUM</b>((3,(<i>x,</i><i>y,</i><i>z</i>)))
19 expands to...
20 <div> <i>x</i>, <i>y</i>, <i>z</i> </div>
21 </div>
22 <h4> Requirements </h4>
23 <div> <b>Header:</b> &nbsp;<a href="../headers/array/enum.html">&lt;boost/preprocessor/array/enum.hpp&gt;</a>
24 </div>
25 <h4> Sample Code </h4>
26 <div>
27 <pre>#include &lt;<a href="../headers/array/enum.html">boost/preprocessor/array/enum.hpp</a>&gt;<br><br>#define ARRAY (5,(B,O,O,S,T))<br><br><a href="array_enum.html">BOOST_PP_ARRAY_ENUM</a>(ARRAY) // expands to B, O, O, S, T<br></pre>
28 </div>
29 <hr size="1">
30 <div style="margin-left: 0px;"> <i></i><i>© Copyright Edward Diener 2011</i> </div>
31 <div style="margin-left: 0px;">
32 <p><small>Distributed under the Boost Software License, Version 1.0.
33 (See accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
34 or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
35 </div>
36 </body>
37 </html>