3 <title>BOOST_PP_SEQ_FIRST_N
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_SEQ_FIRST_N
</b> macro expands to a
<i>seq
</i> of the first
<i>n
</i>
9 elements of a
<i>seq
</i>.
15 <b>BOOST_PP_SEQ_FIRST_N
</b>(
<i>n
</i>,
<i>seq
</i>)
23 The number of elements to extract.
27 The
<i>seq
</i> from which the elements are extracted.
34 This macro extracts
<i>n
</i> elements from the beginning of
<i>seq
</i> and
35 returns them as a new
<i>seq
</i>
42 <a href=
"seq_rest_n.html">BOOST_PP_SEQ_REST_N
</a></li>
48 <b>Header:
</b> <a href=
"../headers/seq/first_n.html"><boost/preprocessor/seq/first_n.hpp
></a>
54 <pre>#include
<<a href=
"../headers/seq/first_n.html">boost/preprocessor/seq/first_n.hpp
</a>><br><br>#define SEQ (a)(b)(c)(d)(e)
<br><br><a href=
"seq_first_n.html">BOOST_PP_SEQ_FIRST_N
</a>(
2, SEQ) // expands to (a)(b)
<br></pre>
57 <div style=
"margin-left: 0px;">
58 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
59 <br><i>© Copyright Paul Mensonides
2002</i>
61 <div style=
"margin-left: 0px;">
62 <p><small>Distributed under the Boost Software License, Version
1.0. (See
63 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
64 copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>