Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80704 - in trunk: boost/preprocessor boost/preprocessor/seq libs/preprocessor/doc libs/preprocessor/doc/headers libs/preprocessor/doc/headers/seq libs/preprocessor/doc/ref
From: pmenso57_at_[hidden]
Date: 2012-09-25 23:50:28


Author: pmenso57
Date: 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
New Revision: 80704
URL: http://svn.boost.org/trac/boost/changeset/80704

Log:
added VARIADIC_SEQ_TO_SEQ
Added:
   trunk/boost/preprocessor/seq/variadic_seq_to_seq.hpp (contents, props changed)
   trunk/libs/preprocessor/doc/headers/seq/variadic_seq_to_seq.html (contents, props changed)
   trunk/libs/preprocessor/doc/ref/variadic_seq_to_seq.html (contents, props changed)
Text files modified:
   trunk/boost/preprocessor/seq.hpp | 1 +
   trunk/libs/preprocessor/doc/headers.html | 1 +
   trunk/libs/preprocessor/doc/headers/seq.html | 2 ++
   trunk/libs/preprocessor/doc/ref.html | 1 +
   4 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/boost/preprocessor/seq.hpp
==============================================================================
--- trunk/boost/preprocessor/seq.hpp (original)
+++ trunk/boost/preprocessor/seq.hpp 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
@@ -39,5 +39,6 @@
 # include <boost/preprocessor/seq/to_list.hpp>
 # include <boost/preprocessor/seq/to_tuple.hpp>
 # include <boost/preprocessor/seq/transform.hpp>
+# include <boost/preprocessor/seq/variadic_seq_to_seq.hpp>
 #
 # endif

Added: trunk/boost/preprocessor/seq/variadic_seq_to_seq.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/preprocessor/seq/variadic_seq_to_seq.hpp 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
@@ -0,0 +1,28 @@
+# /* **************************************************************************
+# * *
+# * (C) Copyright Paul Mensonides 2012. *
+# * 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_SEQ_VARIADIC_SEQ_TO_SEQ_HPP
+# define BOOST_PREPROCESSOR_SEQ_VARIADIC_SEQ_TO_SEQ_HPP
+#
+# include <boost/preprocessor/cat.hpp>
+# include <boost/preprocessor/config/config.hpp>
+#
+# /* BOOST_PP_VARIADIC_SEQ_TO_SEQ */
+#
+# if BOOST_PP_VARIADICS
+# define BOOST_PP_VARIADIC_SEQ_TO_SEQ(vseq) BOOST_PP_CAT(BOOST_PP_VARIADIC_SEQ_TO_SEQ_A vseq, 0)
+# define BOOST_PP_VARIADIC_SEQ_TO_SEQ_A(...) ((__VA_ARGS__)) BOOST_PP_VARIADIC_SEQ_TO_SEQ_B
+# define BOOST_PP_VARIADIC_SEQ_TO_SEQ_B(...) ((__VA_ARGS__)) BOOST_PP_VARIADIC_SEQ_TO_SEQ_A
+# define BOOST_PP_VARIADIC_SEQ_TO_SEQ_A0
+# define BOOST_PP_VARIADIC_SEQ_TO_SEQ_B0
+# endif
+#
+# endif

Modified: trunk/libs/preprocessor/doc/headers.html
==============================================================================
--- trunk/libs/preprocessor/doc/headers.html (original)
+++ trunk/libs/preprocessor/doc/headers.html 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
@@ -194,6 +194,7 @@
   <li class="ps">to_list.hpp</li>
   <li class="ps">to_tuple.hpp</li>
   <li class="ps">transform.hpp</li>
+ <li class="ps">variadic_seq_to_seq.hpp</li>
   <li>slot.hpp</li>
   <li>slot/</li>
   <li class="ps">counter.hpp</li>

Modified: trunk/libs/preprocessor/doc/headers/seq.html
==============================================================================
--- trunk/libs/preprocessor/doc/headers/seq.html (original)
+++ trunk/libs/preprocessor/doc/headers/seq.html 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
@@ -69,6 +69,8 @@
                         <a href="seq/to_tuple.html">&lt;boost/preprocessor/seq/to_tuple.hpp&gt;</a></li>
                 <li>
                         <a href="seq/transform.html">&lt;boost/preprocessor/seq/transform.hpp&gt;</a></li>
+ <li>
+ <boost/preprocessor/seq/variadic_seq_to_seq.hpp></li>
         </ul>
 <hr size="1">
 <div style="margin-left: 0px;">

Added: trunk/libs/preprocessor/doc/headers/seq/variadic_seq_to_seq.html
==============================================================================
--- (empty file)
+++ trunk/libs/preprocessor/doc/headers/seq/variadic_seq_to_seq.html 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
@@ -0,0 +1,34 @@
+<html>
+ <head>
+ <title>seq/variadic_seq_to_seq.hpp</title>
+ <link rel="stylesheet" type="text/css" href="../../styles.css">
+ </head>
+ <body>
+ <div style="margin-left: 0px;">
+ The <b>seq/variadic_seq_to_seq.hpp</b> header defines a macro that converts a <i>variadic seq</i> into a <i>seq</i>.
+ </div>
+ <h4>
+ Usage
+ </h4>
+ <div class="code">
+ #include <b>&lt;boost/preprocessor/seq/variadic_seq_to_seq.hpp&gt;</b>
+ </div>
+ <h4>
+ Contents
+ </h4>
+ <ul>
+ <li>
+ BOOST_PP_VARIADIC_SEQ_TO_SEQ</li>
+ </ul>
+ <hr size="1">
+ <div style="margin-left: 0px;">
+ <i>© Copyright Paul Mensonides 2012</i>
+ </div>
+ <div style="margin-left: 0px;">
+ <p><small>Distributed under the Boost Software License, Version 1.0. (See
+ accompanying file LICENSE_1_0.txt or
+ copy at <a href=
+ "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</small></p>
+ </div>
+ </body>
+</html>

Modified: trunk/libs/preprocessor/doc/ref.html
==============================================================================
--- trunk/libs/preprocessor/doc/ref.html (original)
+++ trunk/libs/preprocessor/doc/ref.html 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
@@ -281,6 +281,7 @@
   <li>VALUE</li>
   <li>VARIADICS</li>
   <li>VARIADIC_ELEM (v)</li>
+ <li>VARIADIC_SEQ_TO_SEQ (v)</li>
   <li>VARIADIC_SIZE (v)</li>
   <li>VARIADIC_TO_ARRAY (v)</li>
   <li>VARIADIC_TO_LIST (v)</li>

Added: trunk/libs/preprocessor/doc/ref/variadic_seq_to_seq.html
==============================================================================
--- (empty file)
+++ trunk/libs/preprocessor/doc/ref/variadic_seq_to_seq.html 2012-09-25 23:50:27 EDT (Tue, 25 Sep 2012)
@@ -0,0 +1,35 @@
+<html>
+<head>
+ <title>BOOST_PP_VARIADIC_SEQ_TO_SEQ</title>
+ <link rel="stylesheet" type="text/css" href="../styles.css">
+</head>
+<body>
+<div style="margin-left: 0px;"> The <b>BOOST_PP_VARIADIC_SEQ_TO_SEQ</b> variadic macro
+converts a <i>variadic seq</i> to a <i>seq</i>. </div>
+<h4> Usage </h4>
+<div class="code"> <b>BOOST_PP_VARIADIC_SEQ_TO_SEQ</b>(<i>vseq</i>)<sup> (v)</sup> </div>
+<h4> Arguments </h4>
+<dl>
+ <dt>vseq<br>
+</dt>
+ <dd> The <i>variadic seq</i> to be converted. </dd>
+</dl>
+<h4> Requirements </h4>
+<div> <b>Header:</b> &nbsp;<boost/preprocessor/seq/variadic_seq_to_seq.hpp>
+</div>
+<h4> Sample Code </h4>
+<div>
+<pre>#include &lt;boost/preprocessor/seq/variadic_seq_to_seq.hpp&gt;<br><br>
+BOOST_PP_VARIADIC_SEQ_TO_SEQ((1)(2, 3)(4, 5, 6)) // expands to ((1))((2, 3))((4, 5, 6))<br></pre>
+</div>
+<hr size="1">
+<div style="margin-left: 0px;">
+ <i>© Copyright Paul Mensonides 2012</i>
+</div>
+<div style="margin-left: 0px;">
+<p><small>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)</small></p>
+</div>
+</body>
+</html>


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