diff --git a/doc/ref/array_to_list.html b/doc/ref/array_to_list.html index 607b205..8ea7133 100644 --- a/doc/ref/array_to_list.html +++ b/doc/ref/array_to_list.html @@ -1,33 +1,41 @@ -
-#include <boost/preprocessor/array/to_list.hpp>-
BOOST_PP_ARRAY_TO_LIST((3, (x, y, z)))
// expands to (x, (y, (z, BOOST_PP_NIL)))
Distributed under the Boost Software License, Version 1.0. -(See accompanying file LICENSE_1_0.txt -or copy at www.boost.org/LICENSE_1_0.txt)
-If the array to be converted is empty, as + represented by '( 0, () )', the resulting list is empty, as + represented by 'BOOST_PP_NIL'.
+#include <boost/preprocessor/array/to_list.hpp>+
BOOST_PP_ARRAY_TO_LIST((3, (x, y, z)))
// expands to (x, (y, (z, BOOST_PP_NIL)))
Distributed under the Boost Software License, Version 1.0. (See + accompanying file LICENSE_1_0.txt + or copy at www.boost.org/LICENSE_1_0.txt)
+#include <boost/preprocessor/array/to_seq.hpp>-
BOOST_PP_ARRAY_TO_SEQ((3, (a, b, c))) // expands to (a)(b)(c)
Distributed under the Boost Software License, Version 1.0. -(See accompanying file LICENSE_1_0.txt -or copy at www.boost.org/LICENSE_1_0.txt)
-If the array to be converted is empty, as + represented by '( 0, () )', the resulting seq is undefined since a + seq cannot be empty.
+#include <boost/preprocessor/array/to_seq.hpp>+
BOOST_PP_ARRAY_TO_SEQ((3, (a, b, c))) // expands to (a)(b)(c)
Distributed under the Boost Software License, Version 1.0. (See + accompanying file LICENSE_1_0.txt + or copy at www.boost.org/LICENSE_1_0.txt)
+#include <boost/preprocessor/array/to_tuple.hpp>-
#define ARRAY (3,(a, b, c))
BOOST_PP_ARRAY_TO_TUPLE(ARRAY) // expands to (a, b, c)
Distributed under the Boost Software License, Version 1.0. -(See accompanying file LICENSE_1_0.txt -or copy at www.boost.org/LICENSE_1_0.txt)
-If the array to be converted is empty, as + represented by '( 0, () )', the resulting tuple is undefined + since a tuple cannot be empty.
+#include <boost/preprocessor/array/to_tuple.hpp>+
#define ARRAY (3,(a, b, c))
BOOST_PP_ARRAY_TO_TUPLE(ARRAY) // expands to (a, b, c)
Distributed under the Boost Software License, Version 1.0. (See + accompanying file LICENSE_1_0.txt + or copy at www.boost.org/LICENSE_1_0.txt)
+#include <boost/preprocessor/list/to_array.hpp>-
#define LIST (a, (b, (c, BOOST_PP_NIL)))
BOOST_PP_LIST_TO_ARRAY(LIST) // expands to (3, (a, b, c))
Distributed under the Boost Software License, Version 1.0. -(See accompanying file LICENSE_1_0.txt -or copy at www.boost.org/LICENSE_1_0.txt)
-#include <boost/preprocessor/list/to_array.hpp>+
#define LIST (a, (b, (c, BOOST_PP_NIL)))
BOOST_PP_LIST_TO_ARRAY(LIST) // expands to (3, (a, b, c))
Distributed under the Boost Software License, Version 1.0. (See + accompanying file LICENSE_1_0.txt + or copy at www.boost.org/LICENSE_1_0.txt)
+If the list to be converted is empty, as + represented by 'BOOST_PP_NIL', the resulting array is empty, as + represented by '( 0, () )'.
+#include <boost/preprocessor/list/to_seq.hpp>-
BOOST_PP_LIST_TO_SEQ((a, (b, (c, BOOST_PP_NIL)))) // expands to (a)(b)(c)
Distributed under the Boost Software License, Version 1.0. -(See accompanying file LICENSE_1_0.txt -or copy at www.boost.org/LICENSE_1_0.txt)
-#include <boost/preprocessor/list/to_seq.hpp>+
BOOST_PP_LIST_TO_SEQ((a, (b, (c, BOOST_PP_NIL)))) // expands to (a)(b)(c)
Distributed under the Boost Software License, Version 1.0. (See + accompanying file LICENSE_1_0.txt + or copy at www.boost.org/LICENSE_1_0.txt)
+If the list to be converted is empty, as + represented by 'BOOST_PP_NIL', the resulting seq is undefined + since a seq cannot be empty.
+-#include <boost/preprocessor/list/to_tuple.hpp> + + +BOOST_PP_LIST_TO_TUPLE + + + +The BOOST_PP_LIST_TO_TUPLE macro + converts a list to a tuple.+Usage
+BOOST_PP_LIST_TO_TUPLE(list)+Arguments
+
#include <boost/preprocessor/list/to_tuple.hpp> #define LIST (w, (x, (y, (z, BOOST_PP_NIL)))) BOOST_PP_LIST_TO_TUPLE(LIST) // expands to (w, x, y, z)
Distributed under the Boost Software License, Version 1.0. (See - accompanying file LICENSE_1_0.txt or - copy at www.boost.org/LICENSE_1_0.txt)
-Distributed under the Boost Software License, Version 1.0. (See + accompanying file LICENSE_1_0.txt + or copy at www.boost.org/LICENSE_1_0.txt)
+-#include <boost/preprocessor/list/adt.hpp> + + +BOOST_PP_LIST_TO_TUPLE_R + + + +The BOOST_PP_LIST_TO_TUPLE_R macro + converts a list to a tuple. It reenters BOOST_PP_FOR + with maximum efficiency.+Usage
+BOOST_PP_LIST_TO_TUPLE_R(r, list) ++Arguments
+
If list is, for example, (a, (b, (c, + BOOST_PP_NIL))), this macro will produce:
+#include <boost/preprocessor/list/adt.hpp> #include <boost/preprocessor/list/to_tuple.hpp> #include <boost/preprocessor/repetition/for.hpp> @@ -54,16 +49,14 @@ BOOST_PP_FOR(LIST, PRED, OP, MACRO) // expands to (x, y, z) (y, z) (z)
Distributed under the Boost Software License, Version 1.0. (See - accompanying file LICENSE_1_0.txt or - copy at www.boost.org/LICENSE_1_0.txt)
-Distributed under the Boost Software License, Version 1.0. (See + accompanying file LICENSE_1_0.txt + or copy at www.boost.org/LICENSE_1_0.txt)
+