mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-29 11:47:14 +02:00
New reference
[SVN r12606]
This commit is contained in:
38
doc/reference/list_first_n.htm
Normal file
38
doc/reference/list_first_n.htm
Normal file
@ -0,0 +1,38 @@
|
||||
<HTML><HEAD><TITLE>Boost PREPROCESSOR library</TITLE><BODY bgcolor="#FFFFFF">
|
||||
|
||||
<a href="index.htm"><IMG height=86 alt="c++boost.gif (8819 bytes)" src="../../../../c++boost.gif" width=277 align=center></a>
|
||||
|
||||
<hr>
|
||||
|
||||
<H1>#include <<a href="../../../../boost/preprocessor/list/first_n.hpp">boost/preprocessor/list/first_n.hpp</a>></H1>
|
||||
|
||||
<hr>
|
||||
|
||||
<H2><a name="BOOST_PP_LIST_FIRST_N">#define BOOST_PP_LIST_FIRST_N</a>(N,L)</H2>
|
||||
<P>Expands to a list of the first N elements of the list.</P>
|
||||
|
||||
<P>For example,</P>
|
||||
|
||||
<PRE>
|
||||
<a href="list_first_n.htm#BOOST_PP_LIST_FIRST_N">BOOST_PP_LIST_FIRST_N</a>(2,<a href="tuple_to_list.htm#BOOST_PP_TUPLE_TO_LIST">BOOST_PP_TUPLE_TO_LIST</a>(4,(+,-,*,/)))
|
||||
</PRE>
|
||||
|
||||
<P>expands to a list containing + and -.</P>
|
||||
|
||||
<H3>Uses</H3>
|
||||
<UL>
|
||||
<LI><a href="while.htm#BOOST_PP_WHILE">BOOST_PP_WHILE</a>()
|
||||
</UL>
|
||||
|
||||
<hr>
|
||||
|
||||
<p>(C) Copyright Housemarque Oy 2002</p>
|
||||
|
||||
<p>Permission to copy, use, modify, sell and distribute this document is granted
|
||||
provided this copyright notice appears in all copies. This document is provided
|
||||
"as is" without express or implied warranty, and with no claim as to its suitability
|
||||
for any purpose.</p>
|
||||
|
||||
<p>Generated: <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %b %Y" startspan --><!--webbot bot="Timestamp" endspan i-checksum="15246" --></p>
|
||||
|
||||
</BODY></HTML>
|
Reference in New Issue
Block a user