diff --git a/include/boost/preprocessor/tuple/elem.hpp b/include/boost/preprocessor/tuple/elem.hpp index 6b1e869..329926b 100644 --- a/include/boost/preprocessor/tuple/elem.hpp +++ b/include/boost/preprocessor/tuple/elem.hpp @@ -56,7 +56,7 @@ # define BOOST_PP_TUPLE_ELEM_DELAY(N,I,T) BOOST_PP_TUPLE##N##_ELEM##I T #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. */ #define BOOST_PP_TUPLE1_ELEM0(A) A diff --git a/include/boost/preprocessor/tuple/to_list.hpp b/include/boost/preprocessor/tuple/to_list.hpp index b1902e1..9004cf6 100644 --- a/include/boost/preprocessor/tuple/to_list.hpp +++ b/include/boost/preprocessor/tuple/to_list.hpp @@ -17,9 +17,23 @@ /**
Converts a tuple to a list.
+For example,
+ ++ BOOST_PP_TUPLE_TO_LIST(3,(A,B,C)) ++ +
expands to the same as
+ ++ BOOST_PP_LIST_CONS(A, + BOOST_PP_LIST_CONS(B, + BOOST_PP_LIST_CONS(C, + BOOST_PP_LIST_NIL))) ++