Files
preprocessor/docs.1/ref/list_is_cons.html
Paul Mensonides cdc4be5256 initial revision
[SVN r15198]
2002-09-08 09:40:56 +00:00

42 lines
1.2 KiB
HTML

<html>
<head>
<title>BOOST_PP_LIST_IS_CONS</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_IS_CONS</b> macro is a predicate that determines if a <i>list</i> not nil.
</div>
<h4>Usage</h4>
<div class="code">
<b>BOOST_PP_LIST_IS_CONS</b>(<i>list</i>)
</div>
<h4>Arguments</h4>
<dl>
<dt>list</dt>
<dd>
A <i>list</i>.
</dd>
</dl>
<h4>Remarks</h4>
<div>
If <i>list</i> is non-nil, this macro expands to <i>1</i>.&nbsp;
Otherwise, it expands to <i>0</i>.
</div>
<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 LIST (a, BOOST_PP_NIL)
BOOST_PP_LIST_IS_CONS(LIST) // expands to 1
BOOST_PP_LIST_IS_CONS(BOOST_PP_LIST_REST(LIST)) // expands to 0
<pre></div>
</body>
</html>