forked from boostorg/preprocessor
initial revision
[SVN r15198]
This commit is contained in:
31
docs.1/ref/nil.html
Normal file
31
docs.1/ref/nil.html
Normal file
@ -0,0 +1,31 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>BOOST_PP_NIL</title>
|
||||
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||||
<script language="javascript" type="text/javascript" src="../scripts.js"></script>
|
||||
</head>
|
||||
<body onload="init('sample');">
|
||||
<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><a class="local" onclick="toggle('sample');" onmouseover="change(this);" onmouseout="revert(this);">Sample Code</a></h4>
|
||||
<div id="sample"><pre>
|
||||
#include <boost/preprocessor/list/adt.hpp>
|
||||
|
||||
#define LIST (x, (y, (z, BOOST_PP_NIL)))
|
||||
|
||||
BOOST_PP_LIST_FIRST(x) // expands to x
|
||||
BOOST_PP_LIST_REST(x) // expands to (y, (z, BOOST_PP_NIL))
|
||||
<pre></div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user