|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72246 - in branches/pplib/v2/boost/preprocessor: . list
From: eldiener_at_[hidden]
Date: 2011-05-28 10:53:29
Author: eldiener
Date: 2011-05-28 10:53:28 EDT (Sat, 28 May 2011)
New Revision: 72246
URL: http://svn.boost.org/trac/boost/changeset/72246
Log:
Added list implementations.
Added:
branches/pplib/v2/boost/preprocessor/list/to_array.hpp (contents, props changed)
branches/pplib/v2/boost/preprocessor/list/to_seq.hpp (contents, props changed)
Text files modified:
branches/pplib/v2/boost/preprocessor/list.hpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: branches/pplib/v2/boost/preprocessor/list.hpp
==============================================================================
--- branches/pplib/v2/boost/preprocessor/list.hpp (original)
+++ branches/pplib/v2/boost/preprocessor/list.hpp 2011-05-28 10:53:28 EDT (Sat, 28 May 2011)
@@ -29,6 +29,8 @@
# include <boost/preprocessor/list/rest_n.hpp>
# include <boost/preprocessor/list/reverse.hpp>
# include <boost/preprocessor/list/size.hpp>
+# include <boost/preprocessor/list/to_array.hpp>
+# include <boost/preprocessor/list/to_seq.hpp>
# include <boost/preprocessor/list/to_tuple.hpp>
# include <boost/preprocessor/list/transform.hpp>
#
Added: branches/pplib/v2/boost/preprocessor/list/to_array.hpp
==============================================================================
--- (empty file)
+++ branches/pplib/v2/boost/preprocessor/list/to_array.hpp 2011-05-28 10:53:28 EDT (Sat, 28 May 2011)
@@ -0,0 +1,24 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# ifndef BOOST_PREPROCESSOR_LIST_TO_ARRAY_HPP
+# define BOOST_PREPROCESSOR_LIST_TO_ARRAY_HPP
+#
+#include <boost/preprocessor/tuple/to_array.hpp>
+#include <boost/preprocessor/list/to_tuple.hpp>
+#include <boost/preprocessor/list/size.hpp>
+#
+# /* BOOST_PP_LIST_TO_ARRAY */
+#
+#define BOOST_PP_LIST_TO_ARRAY(list) \
+ BOOST_PP_TUPLE_TO_ARRAY(BOOST_PP_LIST_SIZE(list),BOOST_PP_LIST_TO_TUPLE(list)) \
+/**/
+# endif /* BOOST_PREPROCESSOR_LIST_TO_ARRAY_HPP */
Added: branches/pplib/v2/boost/preprocessor/list/to_seq.hpp
==============================================================================
--- (empty file)
+++ branches/pplib/v2/boost/preprocessor/list/to_seq.hpp 2011-05-28 10:53:28 EDT (Sat, 28 May 2011)
@@ -0,0 +1,25 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Edward Diener 2011.
+# * Distributed under the Boost Software License, Version 1.0. (See
+# * accompanying file LICENSE_1_0.txt or copy at
+# * http://www.boost.org/LICENSE_1_0.txt)
+# * *
+# ************************************************************************** */
+#
+# /* See http://www.boost.org for most recent version. */
+#
+# ifndef BOOST_PREPROCESSOR_LIST_TO_SEQ_HPP
+# define BOOST_PREPROCESSOR_LIST_TO_SEQ_HPP
+#
+#include <boost/preprocessor/list/for_each.hpp>
+#
+# /* BOOST_PP_LIST_TO_SEQ */
+#
+#define BOOST_PP_LIST_TO_SEQ(list) \
+ BOOST_PP_LIST_FOR_EACH(BOOST_PP_LIST_TO_SEQ_MACRO, ~, list) \
+/**/
+#define BOOST_PP_LIST_TO_SEQ_MACRO(r,data,elem) \
+ (elem) \
+/**/
+# endif /* BOOST_PREPROCESSOR_LIST_TO_SEQ_HPP */
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk