mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-06-29 22:11:04 +02:00
31 lines
900 B
HTML
31 lines
900 B
HTML
![]() |
<html>
|
||
|
<head>
|
||
|
<title>BOOST_PP_NIL</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div style="margin-left: 0px;">
|
||
|
The <b>BOOST_PP_NIL</b> identifier is reserved by the library to indicate a non-macro.
|
||
|
</div>
|
||
|
<h4>Usage</h4>
|
||
|
<div class="code">
|
||
|
<b>BOOST_PP_NIL</b>
|
||
|
</div>
|
||
|
<h4>Remarks</h4>
|
||
|
<div>
|
||
|
This identifier is <i>not</i> defined.
|
||
|
Its purpose is to <i>not be a macro</i>.
|
||
|
It is also used to terminate a <i>list</i>.
|
||
|
</div>
|
||
|
<h4>Sample Code</h4>
|
||
|
<div><pre>
|
||
|
#include <<a href="../headers/list/adt.hpp.html">boost/preprocessor/list/adt.hpp</a>>
|
||
|
|
||
|
#define LIST (x, (y, (z, <a href="nil.html">BOOST_PP_NIL</a>)))
|
||
|
|
||
|
<a href="list_first.html">BOOST_PP_LIST_FIRST</a>(x) // expands to x
|
||
|
<a href="list_rest.html">BOOST_PP_LIST_REST</a>(x) // expands to (y, (z, <a href="nil.html">BOOST_PP_NIL</a>))
|
||
|
</pre></div>
|
||
|
</body>
|
||
|
</html>
|