mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-15 21:42:08 +02:00
Enhancing docs
[SVN r12620]
This commit is contained in:
@ -56,7 +56,7 @@
|
|||||||
# define BOOST_PP_TUPLE_ELEM_DELAY(N,I,T) BOOST_PP_TUPLE##N##_ELEM##I T
|
# define BOOST_PP_TUPLE_ELEM_DELAY(N,I,T) BOOST_PP_TUPLE##N##_ELEM##I T
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* NOTE: TUPLE_ELEM can be implemented in O(N*N) space and O(N) time instead
|
/* TUPLE_ELEM can be implemented in O(N*N) space and O(N) time instead
|
||||||
* of O(N*N*N) space and O(1) time. The current trade-off seems better.
|
* of O(N*N*N) space and O(1) time. The current trade-off seems better.
|
||||||
*/
|
*/
|
||||||
#define BOOST_PP_TUPLE1_ELEM0(A) A
|
#define BOOST_PP_TUPLE1_ELEM0(A) A
|
||||||
|
@ -17,9 +17,23 @@
|
|||||||
|
|
||||||
/** <P>Converts a tuple to a list.</P>
|
/** <P>Converts a tuple to a list.</P>
|
||||||
|
|
||||||
|
<P>For example,</P>
|
||||||
|
|
||||||
|
<PRE>
|
||||||
|
BOOST_PP_TUPLE_TO_LIST(3,(A,B,C))
|
||||||
|
</PRE>
|
||||||
|
|
||||||
|
<P>expands to the same as</P>
|
||||||
|
|
||||||
|
<PRE>
|
||||||
|
BOOST_PP_LIST_CONS(A,
|
||||||
|
BOOST_PP_LIST_CONS(B,
|
||||||
|
BOOST_PP_LIST_CONS(C,
|
||||||
|
BOOST_PP_LIST_NIL)))
|
||||||
|
</PRE>
|
||||||
|
|
||||||
<H3>See</H3>
|
<H3>See</H3>
|
||||||
<UL>
|
<UL>
|
||||||
<LI>BOOST_PP_LIST_CONS()
|
|
||||||
<LI>BOOST_PP_LIMIT_TUPLE
|
<LI>BOOST_PP_LIMIT_TUPLE
|
||||||
</UL>
|
</UL>
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user