]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | <html> |
2 | <head> | |
3 | <title>BOOST_PP_LIST_IS_CONS</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_IS_CONS</b> macro is a predicate that determines if a <i>list</i> not nil. | |
9 | </div> | |
10 | <h4>Usage</h4> | |
11 | <div class="code"> | |
12 | <b>BOOST_PP_LIST_IS_CONS</b>(<i>list</i>) | |
13 | </div> | |
14 | <h4>Arguments</h4> | |
15 | <dl> | |
16 | <dt>list</dt> | |
17 | <dd> | |
18 | A <i>list</i>. | |
19 | </dd> | |
20 | </dl> | |
21 | <h4>Remarks</h4> | |
22 | <div> | |
23 | If <i>list</i> is non-nil, this macro expands to <i>1</i>. | |
24 | Otherwise, it expands to <i>0</i>. | |
25 | </div> | |
26 | <h4>Requirements</h4> | |
27 | <div> | |
28 | <b>Header:</b> <a href="../headers/list/adt.html"><boost/preprocessor/list/adt.hpp></a> | |
29 | </div> | |
30 | <h4>Sample Code</h4> | |
31 | <div><pre> | |
32 | #include <<a href="../headers/list/adt.html">boost/preprocessor/list/adt.hpp</a>> | |
33 | ||
34 | #define LIST (a, <a href="nil.html">BOOST_PP_NIL</a>) | |
35 | ||
36 | <a href="list_is_cons.html">BOOST_PP_LIST_IS_CONS</a>(LIST) // expands to 1 | |
37 | <a href="list_is_cons.html">BOOST_PP_LIST_IS_CONS</a>(<a href="list_rest.html">BOOST_PP_LIST_REST</a>(LIST)) // expands to 0 | |
38 | </pre></div> | |
39 | <hr size="1"> | |
40 | <div style="margin-left: 0px;"> | |
41 |