initial revision

[SVN r15198]
This commit is contained in:
Paul Mensonides
2002-09-08 09:40:56 +00:00
parent cb61e12209
commit cdc4be5256
294 changed files with 12946 additions and 11 deletions

52
docs.1/ref/list_rest.html Normal file
View File

@ -0,0 +1,52 @@
<html>
<head>
<title>BOOST_PP_LIST_REST</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_LIST_REST</b> macro expands to the tail of a <i>list</i>.
</div>
<h4>Usage</h4>
<div class="code">
<b>BOOST_PP_LIST_REST</b>(<i>list</i>)
</div>
<h4>Arguments</h4>
<dl>
<dt>list</dt>
<dd>
A non-nil <i>list</i>.
</dd>
</dl>
<h4>Requirements</h4>
<div>
<b>Header:</b> &nbsp;<a href="../headers/list/adt.hpp.html">&lt;boost/preprocessor/list/adt.hpp&gt;</a>
</div>
<h4><a class="local" onclick="toggle('sample');" onmouseover="change(this);" onmouseout="revert(this);">Sample Code</a></h4>
<div id="sample"><pre>
#include &lt;boost/preprocessor/list/adt.hpp&gt;
#define OLD /* ........... */ \
BOOST_PP_LIST_CONS( \
a, \
BOOST_PP_LIST_CONS( \
b, \
BOOST_PP_LIST_CONS( \
c, \
BOOST_PP_LIST_NIL \
) \
) \
) \
/**/
#define NEW (a, (b, (c, BOOST_PP_NIL)))
BOOST_PP_LIST_FIRST(OLD) == BOOST_PP_LIST_FIRST(NEW)
// expands to a == a
BOOST_PP_LIST_REST(OLD) == BOOST_PP_LIST_REST(NEW)
// expands to (b, (c, BOOST_PP_NIL)) == (b, (c, BOOST_PP_NIL))
<pre></div>
</body>
</html>