]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/preprocessor/doc/ref/list_reverse.html
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / list_reverse.html
1 <html>
2 <head>
3 <title>BOOST_PP_LIST_REVERSE</title>
4 <link rel="stylesheet" type="text/css" href="../styles.css">
5 </head>
6 <body>
7 <div style="margin-left: 0px;">
8 The <b>BOOST_PP_LIST_REVERSE</b> macro expands to the reverse a <i>list</i>.
9 </div>
10 <h4>Usage</h4>
11 <div class="code">
12 <b>BOOST_PP_LIST_REVERSE</b>(<i>list</i>)
13 </div>
14 <h4>Arguments</h4>
15 <dl>
16 <dt>list</dt>
17 <dd>
18 A <i>list</i> to be reversed.
19 </dd>
20 </dl>
21 <h4>Remarks</h4>
22 <div>
23 Previously, this macro could not be used inside <b>BOOST_PP_WHILE</b>.&nbsp;
24 There is no longer any such restriction.&nbsp;
25 It is more efficient, however, to use <b>BOOST_PP_LIST_REVERSE_D</b> in such a situation.
26 </div>
27 <h4>See Also</h4>
28 <ul>
29 <li><a href="list_reverse_d.html">BOOST_PP_LIST_REVERSE_D</a></li>
30 </ul>
31 <h4>Requirements</h4>
32 <div>
33 <b>Header:</b> &nbsp;<a href="../headers/list/reverse.html">&lt;boost/preprocessor/list/reverse.hpp&gt;</a>
34 </div>
35 <h4>Sample Code</h4>
36 <div><pre>
37 #include &lt;<a href="../headers/list/reverse.html">boost/preprocessor/list/reverse.hpp</a>&gt;
38
39 #define LIST (0, (1, (2, (3, <a href="nil.html">BOOST_PP_NIL</a>))))
40
41 <a href="list_reverse.html">BOOST_PP_LIST_REVERSE</a>(LIST) // expands to (3, (2, (1, (0, <a href="nil.html">BOOST_PP_NIL</a>))))
42 </pre></div>
43 <hr size="1">
44 <div style="margin-left: 0px;">
45 <i>© Copyright <a href="http://www.housemarque.com" target="_top">Housemarque Oy</a> 2002</i>
46 </br><i>© Copyright Paul Mensonides 2002</i>
47 </div>
48 <div style="margin-left: 0px;">
49 <p><small>Distributed under the Boost Software License, Version 1.0. (See
50 accompanying file <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or
51 copy at <a href=
52 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
53 </div>
54 </body>
55 </html>