forked from boostorg/preprocessor
Updated docs
[SVN r12687]
This commit is contained in:
@ -13,18 +13,18 @@
|
||||
* See http://www.boost.org for most recent version.
|
||||
*/
|
||||
|
||||
/** <P>Expands to a macro that eats a tuple of the specified length.</P>
|
||||
/** <p>Expands to a macro that eats a tuple of the specified length.</p>
|
||||
|
||||
<P>BOOST_PP_TUPLE_EAT() is designed to be used with BOOST_PP_IF() like
|
||||
BOOST_PP_EMPTY().</P>
|
||||
<p>BOOST_PP_TUPLE_EAT() is designed to be used with BOOST_PP_IF() like
|
||||
BOOST_PP_EMPTY().</p>
|
||||
|
||||
<P>For example,</P>
|
||||
<p>For example,</p>
|
||||
|
||||
<PRE>
|
||||
<pre>
|
||||
BOOST_PP_IF(0,BOOST_PP_ENUM_PARAMS,BOOST_PP_TUPLE_EAT(2))(10,P)
|
||||
</PRE>
|
||||
</pre>
|
||||
|
||||
<P>expands to nothing.</P>
|
||||
<p>expands to nothing.</p>
|
||||
*/
|
||||
#define BOOST_PP_TUPLE_EAT(N) BOOST_PP_TUPLE_EAT_DELAY(N)
|
||||
|
||||
|
@ -13,30 +13,30 @@
|
||||
* See http://www.boost.org for most recent version.
|
||||
*/
|
||||
|
||||
/** <P>Expands to the I:th element of an N-tuple.</P>
|
||||
/** <p>Expands to the <code>I</code>:th element of an <code>N</code>-tuple.</p>
|
||||
|
||||
<P>For example,</P>
|
||||
<p>For example,</p>
|
||||
|
||||
<PRE>
|
||||
<pre>
|
||||
BOOST_PP_TUPLE_ELEM(2,1,(A,B))
|
||||
</PRE>
|
||||
</pre>
|
||||
|
||||
<P>expands to B.</P>
|
||||
<p>expands to <code>B</code>.</p>
|
||||
|
||||
<P>Tuples can be used for representing structured data.</P>
|
||||
<p>Tuples can be used for representing structured data.</p>
|
||||
|
||||
<P>Examples of tuples:</P>
|
||||
<p>Examples of tuples:</p>
|
||||
|
||||
<PRE>
|
||||
<pre>
|
||||
2-tuple: (A, B)
|
||||
3-tuple: (1, 2, 3)
|
||||
4-tuple: (A B C, D, EF, 34)
|
||||
</PRE>
|
||||
</pre>
|
||||
|
||||
<H3>See</H3>
|
||||
<UL>
|
||||
<LI>BOOST_PP_LIMIT_TUPLE
|
||||
</UL>
|
||||
<h3>See</h3>
|
||||
<ul>
|
||||
<li>BOOST_PP_LIMIT_TUPLE</li>
|
||||
</ul>
|
||||
*/
|
||||
#define BOOST_PP_TUPLE_ELEM(N,I,T) BOOST_PP_TUPLE_ELEM_DELAY(N,I,T)
|
||||
|
||||
@ -212,6 +212,6 @@
|
||||
#define BOOST_PP_TUPLE16_ELEM15(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P) P
|
||||
#endif
|
||||
|
||||
/** <P>Obsolete. Use BOOST_PP_TUPLE_ELEM().</P> */
|
||||
/** <p>Obsolete. Use BOOST_PP_TUPLE_ELEM().</p> */
|
||||
#define BOOST_PREPROCESSOR_TUPLE_ELEM(N,I,T) BOOST_PP_TUPLE_ELEM(N,I,T)
|
||||
#endif
|
||||
|
@ -15,27 +15,27 @@
|
||||
|
||||
#include <boost/preprocessor/list/adt.hpp>
|
||||
|
||||
/** <P>Converts a tuple to a list.</P>
|
||||
/** <p>Converts a tuple to a list.</p>
|
||||
|
||||
<P>For example,</P>
|
||||
<p>For example,</p>
|
||||
|
||||
<PRE>
|
||||
<pre>
|
||||
BOOST_PP_TUPLE_TO_LIST(3,(A,B,C))
|
||||
</PRE>
|
||||
</pre>
|
||||
|
||||
<P>expands to the same as</P>
|
||||
<p>expands to the same as</p>
|
||||
|
||||
<PRE>
|
||||
<pre>
|
||||
BOOST_PP_LIST_CONS(A,
|
||||
BOOST_PP_LIST_CONS(B,
|
||||
BOOST_PP_LIST_CONS(C,
|
||||
BOOST_PP_LIST_NIL)))
|
||||
</PRE>
|
||||
</pre>
|
||||
|
||||
<H3>See</H3>
|
||||
<UL>
|
||||
<LI>BOOST_PP_LIMIT_TUPLE
|
||||
</UL>
|
||||
<h3>See</h3>
|
||||
<ul>
|
||||
<li>BOOST_PP_LIMIT_TUPLE</li>
|
||||
</ul>
|
||||
*/
|
||||
#define BOOST_PP_TUPLE_TO_LIST(N,T) BOOST_PP_TUPLE_TO_LIST_DELAY(N,T)
|
||||
|
||||
|
Reference in New Issue
Block a user