3 <title>BOOST_PP_LIST_ENUM
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_LIST_ENUM
</b> macro converts a
<i>list
</i> to a comma-separated list.
12 <b>BOOST_PP_LIST_ENUM
</b>(
<i>list
</i>)
18 The
<i>list
</i> to be converted.
23 If
<i>list
</i> is, for example, (
<i>a
</i>, (
<i>b
</i>, (
<i>c
</i>,
<b>BOOST_PP_NIL
</b>))),
24 this macro will produce:
26 <i>a
</i>,
<i>b
</i>,
<i>c
</i>
30 Previously, this macro could not be used inside
<b>BOOST_PP_FOR
</b>.
31 There is no longer any such restriction.
32 It is more efficient, however, to use
<b>BOOST_PP_LIST_ENUM_R
</b> in such a situation.
36 <li><a href=
"list_enum_r.html">BOOST_PP_LIST_ENUM_R
</a></li>
40 <b>Header:
</b> <a href=
"../headers/list/enum.html"><boost/preprocessor/list/enum.hpp
></a>
44 #include
<<a href=
"../headers/list/enum.html">boost/preprocessor/list/enum.hpp
</a>>
46 #define LIST (w, (x, (y, (z,
<a href=
"nil.html">BOOST_PP_NIL
</a>))))
48 <a href=
"list_enum.html">BOOST_PP_LIST_ENUM
</a>(LIST) // expands to w, x, y, z
51 <div style=
"margin-left: 0px;">
52 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
53 </br><i>© Copyright Paul Mensonides
2002</i>
55 <div style=
"margin-left: 0px;">
56 <p><small>Distributed under the Boost Software License, Version
1.0. (See
57 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
59 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>