]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <meta content="text/html; charset=windows-1252" http-equiv="content-type"> | |
4 | <title>BOOST_PP_ARRAY_TO_LIST</title> | |
5 | <link rel="stylesheet" type="text/css" href="../styles.css"> | |
6 | </head> | |
7 | <body> | |
8 | <div style="margin-left: 0px;"> The <b>BOOST_PP_ARRAY_TO_LIST</b> macro | |
9 | converts an <i>array</i> to a <i>list</i>. </div> | |
10 | <h4>Usage</h4> | |
11 | <div class="code"> <b>BOOST_PP_ARRAY_TO_LIST</b>(<i>array</i>) </div> | |
12 | <h4>Arguments</h4> | |
13 | <dl> | |
14 | <dt>array</dt> | |
15 | <dd> The <i>array</i> to be converted.</dd> | |
16 | </dl> | |
17 | <ul> | |
18 | </ul> | |
19 | <h4>Remarks</h4> | |
20 | <p> If the <i>array</i> to be converted is empty, as | |
21 | represented by '( 0, () )', the resulting <i>list</i> is empty, as | |
22 | represented by 'BOOST_PP_NIL'.</p> | |
23 | <h4>Requirements</h4> | |
24 | <div> <b>Header:</b> <a href="../headers/array/to_list.html"><boost/preprocessor/array/to_list.hpp></a> | |
25 | </div> | |
26 | <h4>Sample Code</h4> | |
27 | <div> | |
28 | <pre>#include <<a href="../headers/array/to_list.html">boost/preprocessor/array/to_list.hpp</a>><br><br><a | |
29 | href="array_to_list.html">BOOST_PP_ARRAY_TO_LIST</a>((3, (x, y, z)))<br> // expands to (x, (y, (z, <a | |
30 | href="nil.html">BOOST_PP_NIL</a>)))</pre> | |
31 | </div> | |
32 | <hr size="1"> | |
33 |