]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/preprocessor/doc/ref/list_nil.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / preprocessor / doc / ref / list_nil.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3 <title>BOOST_PP_LIST_NIL</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_NIL</b> macro is a nil <i>list</i> constructor.
9 </div>
10 <h4>Usage</h4>
11 <div class="code">
12 <b>BOOST_PP_LIST_NIL</b>
13 </div>
14 <h4>Remarks</h4>
15 <div>
16 This macro represents the end of a <i>list</i>.
17 </div>
18 <div>
19 This macro is no longer necessary.&nbsp;
20 It simply expands to <b>BOOST_PP_NIL</b>.&nbsp;
21 Because of this, this macro is deprecated.
22 </div>
23 <h4>See Also</h4>
24 <ul>
25 <li><a href="nil.html">BOOST_PP_NIL</a></li>
26 </ul>
27 <h4>Requirements</h4>
28 <div>
29 <b>Header:</b> &nbsp;<a href="../headers/list/adt.html">&lt;boost/preprocessor/list/adt.hpp&gt;</a>
30 </div>
31 <h4>Sample Code</h4>
32<div><pre>
33#include &lt;<a href="../headers/list/adt.html">boost/preprocessor/list/adt.hpp</a>&gt;
34
35#define OLD \
36 <a href="list_cons.html">BOOST_PP_LIST_CONS</a>( \
37 a, \
38 <a href="list_cons.html">BOOST_PP_LIST_CONS</a>( \
39 b, \
40 <a href="list_cons.html">BOOST_PP_LIST_CONS</a>( \
41 c, \
42 <a href="list_nil.html">BOOST_PP_LIST_NIL</a> \
43 ) \
44 ) \
45 ) \
46 /**/
47
48#define NEW (a, (b, (c, <a href="nil.html">BOOST_PP_NIL</a>)))
49
50<a href="list_first.html">BOOST_PP_LIST_FIRST</a>(OLD) == <a href="list_first.html">BOOST_PP_LIST_FIRST</a>(NEW)
51 // expands to a == a
52
53<a href="list_rest.html">BOOST_PP_LIST_REST</a>(OLD) == <a href="list_rest.html">BOOST_PP_LIST_RESTK</a>(NEW)
54 // expands to (b, (c, <a href="nil.html">BOOST_PP_NIL</a>)) == (b, (c, <a href="nil.html">BOOST_PP_NIL</a>))
55</pre></div>
56 <hr size="1">
57 <div style="margin-left: 0px;">
58