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