3 <title>BOOST_PP_LIST_REST_N
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_LIST_REST_N
</b> macro expands to a
<i>list
</i> of all but the first
<i>count
</i> elements of a
<i>list
</i>.
12 <b>BOOST_PP_LIST_REST_N
</b>(
<i>count
</i>,
<i>list
</i>)
18 The number of elements to remove from the beginning of
<i>list
</i>.
22 The
<i>list
</i> from which the elements are extracted.
27 This macro removes
<i>count
</i> elements from the beginning of
<i>list
</i> and returns the remainder as a
<i>list
</i>
30 Previously, this macro could not be used inside
<b>BOOST_PP_WHILE
</b>.
31 There is no longer any such restriction.
32 It is more efficient, however, to use
<b>BOOST_PP_LIST_REST_N_D
</b> in such a situation.
36 <li><a href=
"list_rest_n_d.html">BOOST_PP_LIST_REST_N_D
</a></li>
40 <b>Header:
</b> <a href=
"../headers/list/rest_n.html"><boost/preprocessor/list/rest_n.hpp
></a>
44 #include
<<a href=
"../headers/list/rest_n.html">boost/preprocessor/list/rest_n.hpp
</a>>
46 #define LIST (a, (b, (c, (d,
<a href=
"nil.html">BOOST_PP_NIL
</a>))))
48 <a href=
"list_rest_n.html">BOOST_PP_LIST_REST_N
</a>(
2, LIST) // expands to (c, (d,
<a href=
"nil.html">BOOST_PP_NIL
</a>))
51 <div style=
"margin-left: 0px;">
52 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
53 </br><i>© Copyright Paul Mensonides
2002</i>
55 <div style=
"margin-left: 0px;">
56 <p><small>Distributed under the Boost Software License, Version
1.0. (See
57 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
59 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>