3 <title>BOOST_PP_LIST_SIZE
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_LIST_SIZE
</b> macro expands to the size of a
<i>list
</i>.
12 <b>BOOST_PP_LIST_SIZE
</b>(
<i>list
</i>)
18 A
<i>list
</i> whose size is to be calculated.
23 Previously, this macro could not be used inside
<b>BOOST_PP_WHILE
</b>.
24 There is no longer any such restriction.
25 It is more efficient, however, to use
<b>BOOST_PP_LIST_SIZE_D
</b> in such a situation.
29 <li><a href=
"list_size_d.html">BOOST_PP_LIST_SIZE_D
</a></li>
33 <b>Header:
</b> <a href=
"../headers/list/size.html"><boost/preprocessor/list/size.hpp
></a>
37 #include
<<a href=
"../headers/list/size.html">boost/preprocessor/list/size.hpp
</a>>
39 #define LIST (
0, (
1, (
2, (
3,
<a href=
"nil.html">BOOST_PP_NIL
</a>))))
41 <a href=
"list_size.html">BOOST_PP_LIST_SIZE
</a>(LIST) // expands to
4
44 <div style=
"margin-left: 0px;">
45 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
46 </br><i>© Copyright Paul Mensonides
2002</i>
48 <div style=
"margin-left: 0px;">
49 <p><small>Distributed under the Boost Software License, Version
1.0. (See
50 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
52 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>