3 <title>BOOST_PP_LIST_IS_CONS
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
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.
12 <b>BOOST_PP_LIST_IS_CONS
</b>(
<i>list
</i>)
23 If
<i>list
</i> is non-nil, this macro expands to
<i>1</i>.
24 Otherwise, it expands to
<i>0</i>.
28 <b>Header:
</b> <a href=
"../headers/list/adt.html"><boost/preprocessor/list/adt.hpp
></a>
32 #include
<<a href=
"../headers/list/adt.html">boost/preprocessor/list/adt.hpp
</a>>
34 #define LIST (a,
<a href=
"nil.html">BOOST_PP_NIL
</a>)
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
40 <div style=
"margin-left: 0px;">
41 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
42 </br><i>© Copyright Paul Mensonides
2002</i>
44 <div style=
"margin-left: 0px;">
45 <p><small>Distributed under the Boost Software License, Version
1.0. (See
46 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
48 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>