forked from boostorg/preprocessor
added VARIADIC_SEQ_TO_SEQ
[SVN r80704]
This commit is contained in:
@ -194,6 +194,7 @@
|
|||||||
<li class="ps"><a href="headers/seq/to_list.html">to_list.hpp</a></li>
|
<li class="ps"><a href="headers/seq/to_list.html">to_list.hpp</a></li>
|
||||||
<li class="ps"><a href="headers/seq/to_tuple.html">to_tuple.hpp</a></li>
|
<li class="ps"><a href="headers/seq/to_tuple.html">to_tuple.hpp</a></li>
|
||||||
<li class="ps"><a href="headers/seq/transform.html">transform.hpp</a></li>
|
<li class="ps"><a href="headers/seq/transform.html">transform.hpp</a></li>
|
||||||
|
<li class="ps"><a href="headers/seq/variadic_seq_to_seq.html">variadic_seq_to_seq.hpp</a></li>
|
||||||
<li><a href="headers/slot.html">slot.hpp</a></li>
|
<li><a href="headers/slot.html">slot.hpp</a></li>
|
||||||
<li>slot/</li>
|
<li>slot/</li>
|
||||||
<li class="ps"><a href="headers/slot/counter.html">counter.hpp</a></li>
|
<li class="ps"><a href="headers/slot/counter.html">counter.hpp</a></li>
|
||||||
|
@ -69,6 +69,8 @@
|
|||||||
<a href="seq/to_tuple.html"><boost/preprocessor/seq/to_tuple.hpp></a></li>
|
<a href="seq/to_tuple.html"><boost/preprocessor/seq/to_tuple.hpp></a></li>
|
||||||
<li>
|
<li>
|
||||||
<a href="seq/transform.html"><boost/preprocessor/seq/transform.hpp></a></li>
|
<a href="seq/transform.html"><boost/preprocessor/seq/transform.hpp></a></li>
|
||||||
|
<li>
|
||||||
|
<a href="seq/variadic_seq_to_seq.html"><boost/preprocessor/seq/variadic_seq_to_seq.hpp></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<hr size="1">
|
<hr size="1">
|
||||||
<div style="margin-left: 0px;">
|
<div style="margin-left: 0px;">
|
||||||
|
34
doc/headers/seq/variadic_seq_to_seq.html
Normal file
34
doc/headers/seq/variadic_seq_to_seq.html
Normal file
@ -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><boost/preprocessor/seq/variadic_seq_to_seq.hpp></b>
|
||||||
|
</div>
|
||||||
|
<h4>
|
||||||
|
Contents
|
||||||
|
</h4>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="../../ref/variadic_seq_to_seq.html">BOOST_PP_VARIADIC_SEQ_TO_SEQ</a></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 <a href="../../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> 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>
|
@ -281,6 +281,7 @@
|
|||||||
<li><a href="ref/value.html">VALUE</a></li>
|
<li><a href="ref/value.html">VALUE</a></li>
|
||||||
<li><a href="ref/variadics.html">VARIADICS</a></li>
|
<li><a href="ref/variadics.html">VARIADICS</a></li>
|
||||||
<li><a href="ref/variadic_elem.html">VARIADIC_ELEM</a> (v)</li>
|
<li><a href="ref/variadic_elem.html">VARIADIC_ELEM</a> (v)</li>
|
||||||
|
<li><a href="ref/variadic_seq_to_seq.html">VARIADIC_SEQ_TO_SEQ</a> (v)</li>
|
||||||
<li><a href="ref/variadic_size.html">VARIADIC_SIZE</a> (v)</li>
|
<li><a href="ref/variadic_size.html">VARIADIC_SIZE</a> (v)</li>
|
||||||
<li><a href="ref/variadic_to_array.html">VARIADIC_TO_ARRAY</a> (v)</li>
|
<li><a href="ref/variadic_to_array.html">VARIADIC_TO_ARRAY</a> (v)</li>
|
||||||
<li><a href="ref/variadic_to_list.html">VARIADIC_TO_LIST</a> (v)</li>
|
<li><a href="ref/variadic_to_list.html">VARIADIC_TO_LIST</a> (v)</li>
|
||||||
|
35
doc/ref/variadic_seq_to_seq.html
Normal file
35
doc/ref/variadic_seq_to_seq.html
Normal file
@ -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> <a href="../headers/seq/variadic_seq_to_seq.html"><boost/preprocessor/seq/variadic_seq_to_seq.hpp></a>
|
||||||
|
</div>
|
||||||
|
<h4> Sample Code </h4>
|
||||||
|
<div>
|
||||||
|
<pre>#include <<a href="../headers/seq/variadic_seq_to_seq.html">boost/preprocessor/seq/variadic_seq_to_seq.hpp</a>><br><br>
|
||||||
|
<a href="variadic_seq_to_seq.html">BOOST_PP_VARIADIC_SEQ_TO_SEQ</a>((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 <a href="../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a>
|
||||||
|
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>
|
@ -39,5 +39,6 @@
|
|||||||
# include <boost/preprocessor/seq/to_list.hpp>
|
# include <boost/preprocessor/seq/to_list.hpp>
|
||||||
# include <boost/preprocessor/seq/to_tuple.hpp>
|
# include <boost/preprocessor/seq/to_tuple.hpp>
|
||||||
# include <boost/preprocessor/seq/transform.hpp>
|
# include <boost/preprocessor/seq/transform.hpp>
|
||||||
|
# include <boost/preprocessor/seq/variadic_seq_to_seq.hpp>
|
||||||
#
|
#
|
||||||
# endif
|
# endif
|
||||||
|
28
include/boost/preprocessor/seq/variadic_seq_to_seq.hpp
Normal file
28
include/boost/preprocessor/seq/variadic_seq_to_seq.hpp
Normal file
@ -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
|
Reference in New Issue
Block a user