From 26e81a558519b90bb33c22263d00f7a480e0624e Mon Sep 17 00:00:00 2001 From: Paul Mensonides Date: Sun, 8 Sep 2002 10:52:13 +0000 Subject: [PATCH] initial revision [SVN r15206] --- docs.1/ref/list_to_tuple.html | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 docs.1/ref/list_to_tuple.html diff --git a/docs.1/ref/list_to_tuple.html b/docs.1/ref/list_to_tuple.html new file mode 100644 index 0000000..5f60410 --- /dev/null +++ b/docs.1/ref/list_to_tuple.html @@ -0,0 +1,52 @@ + + + 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

+
+
list
+
+ The list to be converted. +
+
+

Remarks

+
+ If list is, for example, (a, (b, (c, BOOST_PP_NIL))), + this macro will produce: +
+ (a, b, c) +
+
+
+ Previously, this macro could not be used inside BOOST_PP_FOR.  + There is no longer any such restriction.  + It is more efficient, however, to use BOOST_PP_LIST_TO_TUPLE_R in such a situation. +
+

See Also

+ +

Requirements

+
+ Header:  <boost/preprocessor/list/to_tuple.hpp> +
+

Sample Code

+
+#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)
+
+ +