diff --git a/doc/headers.html b/doc/headers.html index 739dafb..00a7ac4 100644 --- a/doc/headers.html +++ b/doc/headers.html @@ -194,6 +194,7 @@
  • to_list.hpp
  • to_tuple.hpp
  • transform.hpp
  • +
  • variadic_seq_to_seq.hpp
  • slot.hpp
  • slot/
  • counter.hpp
  • diff --git a/doc/headers/seq.html b/doc/headers/seq.html index 98f52e3..9e2ba8c 100644 --- a/doc/headers/seq.html +++ b/doc/headers/seq.html @@ -69,6 +69,8 @@ <boost/preprocessor/seq/to_tuple.hpp>
  • <boost/preprocessor/seq/transform.hpp>
  • +
  • + <boost/preprocessor/seq/variadic_seq_to_seq.hpp>

  • diff --git a/doc/headers/seq/variadic_seq_to_seq.html b/doc/headers/seq/variadic_seq_to_seq.html new file mode 100644 index 0000000..3c3457e --- /dev/null +++ b/doc/headers/seq/variadic_seq_to_seq.html @@ -0,0 +1,34 @@ + + + seq/variadic_seq_to_seq.hpp + + + +
    + The seq/variadic_seq_to_seq.hpp header defines a macro that converts a variadic seq into a seq. +
    +

    + Usage +

    +
    + #include <boost/preprocessor/seq/variadic_seq_to_seq.hpp> +
    +

    + Contents +

    + +
    +
    + © Copyright Paul Mensonides 2012 +
    +
    +

    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)

    +
    + + diff --git a/doc/ref.html b/doc/ref.html index eb8d926..c690571 100644 --- a/doc/ref.html +++ b/doc/ref.html @@ -281,6 +281,7 @@
  • VALUE
  • VARIADICS
  • VARIADIC_ELEM (v)
  • +
  • VARIADIC_SEQ_TO_SEQ (v)
  • VARIADIC_SIZE (v)
  • VARIADIC_TO_ARRAY (v)
  • VARIADIC_TO_LIST (v)
  • diff --git a/doc/ref/variadic_seq_to_seq.html b/doc/ref/variadic_seq_to_seq.html new file mode 100644 index 0000000..d7705a4 --- /dev/null +++ b/doc/ref/variadic_seq_to_seq.html @@ -0,0 +1,35 @@ + + + BOOST_PP_VARIADIC_SEQ_TO_SEQ + + + +
    The BOOST_PP_VARIADIC_SEQ_TO_SEQ variadic macro +converts a variadic seq to a seq.
    +

    Usage

    +
    BOOST_PP_VARIADIC_SEQ_TO_SEQ(vseq) (v)
    +

    Arguments

    +
    +
    vseq
    +
    +
    The variadic seq to be converted.
    +
    +

    Requirements

    +
    Header:  <boost/preprocessor/seq/variadic_seq_to_seq.hpp> +
    +

    Sample Code

    +
    +
    #include <boost/preprocessor/seq/variadic_seq_to_seq.hpp>

    +BOOST_PP_VARIADIC_SEQ_TO_SEQ((1)(2, 3)(4, 5, 6)) // expands to ((1))((2, 3))((4, 5, 6))
    +
    +
    +
    + © Copyright Paul Mensonides 2012 +
    +
    +

    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)

    +
    + + diff --git a/include/boost/preprocessor/seq.hpp b/include/boost/preprocessor/seq.hpp index 6d78f43..cde208c 100644 --- a/include/boost/preprocessor/seq.hpp +++ b/include/boost/preprocessor/seq.hpp @@ -39,5 +39,6 @@ # include # include # include +# include # # endif diff --git a/include/boost/preprocessor/seq/variadic_seq_to_seq.hpp b/include/boost/preprocessor/seq/variadic_seq_to_seq.hpp new file mode 100644 index 0000000..f94a2bf --- /dev/null +++ b/include/boost/preprocessor/seq/variadic_seq_to_seq.hpp @@ -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 +# include +# +# /* 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