3 <title>BOOST_PP_ARRAY_ENUM
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
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>
10 <div class=
"code"> <b>BOOST_PP_ARRAY_ENUM
</b>(
<i>array
</i>)
</div>
14 <dd> The
<i>array
</i> whose elements are to be converted.
</dd>
17 <div> This macro expands to a comma-separated list of the elements in
<i>array
</i>.
18 For example,
<b>BOOST_PP_ARRAY_ENUM
</b>((
3,(
<i>x,
</i><i>y,
</i><i>z
</i>)))
20 <div> <i>x
</i>,
<i>y
</i>,
<i>z
</i> </div>
22 <h4> Requirements
</h4>
23 <div> <b>Header:
</b> <a href=
"../headers/array/enum.html"><boost/preprocessor/array/enum.hpp
></a>
25 <h4> Sample Code
</h4>
27 <pre>#include
<<a href=
"../headers/array/enum.html">boost/preprocessor/array/enum.hpp
</a>><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>
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>