| 1 | # /* ************************************************************************** | 
|---|
| 2 | #  *                                                                          * | 
|---|
| 3 | #  *     (C) Copyright Paul Mensonides 2002. | 
|---|
| 4 | #  *     Distributed under the Boost Software License, Version 1.0. (See | 
|---|
| 5 | #  *     accompanying file LICENSE_1_0.txt or copy at | 
|---|
| 6 | #  *     http://www.boost.org/LICENSE_1_0.txt) | 
|---|
| 7 | #  *                                                                          * | 
|---|
| 8 | #  ************************************************************************** */ | 
|---|
| 9 | # | 
|---|
| 10 | # /* See http://www.boost.org for most recent version. */ | 
|---|
| 11 | # | 
|---|
| 12 | # ifndef BOOST_PREPROCESSOR_TUPLE_TO_SEQ_HPP | 
|---|
| 13 | # define BOOST_PREPROCESSOR_TUPLE_TO_SEQ_HPP | 
|---|
| 14 | # | 
|---|
| 15 | # include <boost/preprocessor/config/config.hpp> | 
|---|
| 16 | # | 
|---|
| 17 | # /* BOOST_PP_TUPLE_TO_SEQ */ | 
|---|
| 18 | # | 
|---|
| 19 | # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC() | 
|---|
| 20 | #    define BOOST_PP_TUPLE_TO_SEQ(size, tuple) BOOST_PP_TUPLE_TO_SEQ_I(size, tuple) | 
|---|
| 21 | #    if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC() | 
|---|
| 22 | #        define BOOST_PP_TUPLE_TO_SEQ_I(s, t) BOOST_PP_TUPLE_TO_SEQ_ ## s t | 
|---|
| 23 | #    else | 
|---|
| 24 | #        define BOOST_PP_TUPLE_TO_SEQ_I(s, t) BOOST_PP_TUPLE_TO_SEQ_II(BOOST_PP_TUPLE_TO_SEQ_ ## s t) | 
|---|
| 25 | #        define BOOST_PP_TUPLE_TO_SEQ_II(res) res | 
|---|
| 26 | #    endif | 
|---|
| 27 | # else | 
|---|
| 28 | #    define BOOST_PP_TUPLE_TO_SEQ(size, tuple) BOOST_PP_TUPLE_TO_SEQ_OO((size, tuple)) | 
|---|
| 29 | #    define BOOST_PP_TUPLE_TO_SEQ_OO(par) BOOST_PP_TUPLE_TO_SEQ_I ## par | 
|---|
| 30 | #    define BOOST_PP_TUPLE_TO_SEQ_I(s, t) BOOST_PP_TUPLE_TO_SEQ_ ## s ## t | 
|---|
| 31 | # endif | 
|---|
| 32 | # | 
|---|
| 33 | # define BOOST_PP_TUPLE_TO_SEQ_0() | 
|---|
| 34 | # define BOOST_PP_TUPLE_TO_SEQ_1(a) (a) | 
|---|
| 35 | # define BOOST_PP_TUPLE_TO_SEQ_2(a, b) (a)(b) | 
|---|
| 36 | # define BOOST_PP_TUPLE_TO_SEQ_3(a, b, c) (a)(b)(c) | 
|---|
| 37 | # define BOOST_PP_TUPLE_TO_SEQ_4(a, b, c, d) (a)(b)(c)(d) | 
|---|
| 38 | # define BOOST_PP_TUPLE_TO_SEQ_5(a, b, c, d, e) (a)(b)(c)(d)(e) | 
|---|
| 39 | # define BOOST_PP_TUPLE_TO_SEQ_6(a, b, c, d, e, f) (a)(b)(c)(d)(e)(f) | 
|---|
| 40 | # define BOOST_PP_TUPLE_TO_SEQ_7(a, b, c, d, e, f, g) (a)(b)(c)(d)(e)(f)(g) | 
|---|
| 41 | # define BOOST_PP_TUPLE_TO_SEQ_8(a, b, c, d, e, f, g, h) (a)(b)(c)(d)(e)(f)(g)(h) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 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) | 
|---|
| 59 | # | 
|---|
| 60 | # endif | 
|---|