williamr@2
|
1 |
# /* **************************************************************************
|
williamr@2
|
2 |
# * *
|
williamr@2
|
3 |
# * (C) Copyright Paul Mensonides 2002.
|
williamr@2
|
4 |
# * Distributed under the Boost Software License, Version 1.0. (See
|
williamr@2
|
5 |
# * accompanying file LICENSE_1_0.txt or copy at
|
williamr@2
|
6 |
# * http://www.boost.org/LICENSE_1_0.txt)
|
williamr@2
|
7 |
# * *
|
williamr@2
|
8 |
# ************************************************************************** */
|
williamr@2
|
9 |
#
|
williamr@2
|
10 |
# /* See http://www.boost.org for most recent version. */
|
williamr@2
|
11 |
#
|
williamr@2
|
12 |
# ifndef BOOST_PREPROCESSOR_TUPLE_TO_SEQ_HPP
|
williamr@2
|
13 |
# define BOOST_PREPROCESSOR_TUPLE_TO_SEQ_HPP
|
williamr@2
|
14 |
#
|
williamr@2
|
15 |
# include <boost/preprocessor/config/config.hpp>
|
williamr@2
|
16 |
#
|
williamr@2
|
17 |
# /* BOOST_PP_TUPLE_TO_SEQ */
|
williamr@2
|
18 |
#
|
williamr@2
|
19 |
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
|
williamr@2
|
20 |
# define BOOST_PP_TUPLE_TO_SEQ(size, tuple) BOOST_PP_TUPLE_TO_SEQ_I(size, tuple)
|
williamr@2
|
21 |
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
|
williamr@2
|
22 |
# define BOOST_PP_TUPLE_TO_SEQ_I(s, t) BOOST_PP_TUPLE_TO_SEQ_ ## s t
|
williamr@2
|
23 |
# else
|
williamr@2
|
24 |
# define BOOST_PP_TUPLE_TO_SEQ_I(s, t) BOOST_PP_TUPLE_TO_SEQ_II(BOOST_PP_TUPLE_TO_SEQ_ ## s t)
|
williamr@2
|
25 |
# define BOOST_PP_TUPLE_TO_SEQ_II(res) res
|
williamr@2
|
26 |
# endif
|
williamr@2
|
27 |
# else
|
williamr@2
|
28 |
# define BOOST_PP_TUPLE_TO_SEQ(size, tuple) BOOST_PP_TUPLE_TO_SEQ_OO((size, tuple))
|
williamr@2
|
29 |
# define BOOST_PP_TUPLE_TO_SEQ_OO(par) BOOST_PP_TUPLE_TO_SEQ_I ## par
|
williamr@2
|
30 |
# define BOOST_PP_TUPLE_TO_SEQ_I(s, t) BOOST_PP_TUPLE_TO_SEQ_ ## s ## t
|
williamr@2
|
31 |
# endif
|
williamr@2
|
32 |
#
|
williamr@2
|
33 |
# define BOOST_PP_TUPLE_TO_SEQ_0()
|
williamr@2
|
34 |
# define BOOST_PP_TUPLE_TO_SEQ_1(a) (a)
|
williamr@2
|
35 |
# define BOOST_PP_TUPLE_TO_SEQ_2(a, b) (a)(b)
|
williamr@2
|
36 |
# define BOOST_PP_TUPLE_TO_SEQ_3(a, b, c) (a)(b)(c)
|
williamr@2
|
37 |
# define BOOST_PP_TUPLE_TO_SEQ_4(a, b, c, d) (a)(b)(c)(d)
|
williamr@2
|
38 |
# define BOOST_PP_TUPLE_TO_SEQ_5(a, b, c, d, e) (a)(b)(c)(d)(e)
|
williamr@2
|
39 |
# define BOOST_PP_TUPLE_TO_SEQ_6(a, b, c, d, e, f) (a)(b)(c)(d)(e)(f)
|
williamr@2
|
40 |
# define BOOST_PP_TUPLE_TO_SEQ_7(a, b, c, d, e, f, g) (a)(b)(c)(d)(e)(f)(g)
|
williamr@2
|
41 |
# define BOOST_PP_TUPLE_TO_SEQ_8(a, b, c, d, e, f, g, h) (a)(b)(c)(d)(e)(f)(g)(h)
|
williamr@2
|
42 |
# define BOOST_PP_TUPLE_TO_SEQ_9(a, b, c, d, e, f, g, h, i) (a)(b)(c)(d)(e)(f)(g)(h)(i)
|
williamr@2
|
43 |
# define BOOST_PP_TUPLE_TO_SEQ_10(a, b, c, d, e, f, g, h, i, j) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)
|
williamr@2
|
44 |
# define BOOST_PP_TUPLE_TO_SEQ_11(a, b, c, d, e, f, g, h, i, j, k) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)
|
williamr@2
|
45 |
# define BOOST_PP_TUPLE_TO_SEQ_12(a, b, c, d, e, f, g, h, i, j, k, l) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)
|
williamr@2
|
46 |
# define BOOST_PP_TUPLE_TO_SEQ_13(a, b, c, d, e, f, g, h, i, j, k, l, m) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)
|
williamr@2
|
47 |
# define BOOST_PP_TUPLE_TO_SEQ_14(a, b, c, d, e, f, g, h, i, j, k, l, m, n) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)
|
williamr@2
|
48 |
# define BOOST_PP_TUPLE_TO_SEQ_15(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)
|
williamr@2
|
49 |
# define BOOST_PP_TUPLE_TO_SEQ_16(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)
|
williamr@2
|
50 |
# define BOOST_PP_TUPLE_TO_SEQ_17(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)
|
williamr@2
|
51 |
# define BOOST_PP_TUPLE_TO_SEQ_18(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)
|
williamr@2
|
52 |
# define BOOST_PP_TUPLE_TO_SEQ_19(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)
|
williamr@2
|
53 |
# define BOOST_PP_TUPLE_TO_SEQ_20(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)
|
williamr@2
|
54 |
# define BOOST_PP_TUPLE_TO_SEQ_21(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)
|
williamr@2
|
55 |
# define BOOST_PP_TUPLE_TO_SEQ_22(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)
|
williamr@2
|
56 |
# define BOOST_PP_TUPLE_TO_SEQ_23(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)
|
williamr@2
|
57 |
# define BOOST_PP_TUPLE_TO_SEQ_24(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)
|
williamr@2
|
58 |
# define BOOST_PP_TUPLE_TO_SEQ_25(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y) (a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)
|
williamr@2
|
59 |
#
|
williamr@2
|
60 |
# endif
|