epoc32/include/stdapis/boost/preprocessor/array/reverse.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/boost/preprocessor/array/reverse.hpp	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/boost/preprocessor/array/reverse.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,62 +1,29 @@
     1.4 -# /* Copyright (C) 2001
     1.5 -#  * Housemarque Oy
     1.6 -#  * http://www.housemarque.com
     1.7 -#  *
     1.8 -#  * Distributed under the Boost Software License, Version 1.0. (See
     1.9 -#  * accompanying file LICENSE_1_0.txt or copy at
    1.10 -#  * http://www.boost.org/LICENSE_1_0.txt)
    1.11 -#  */
    1.12 -#
    1.13 -# /* Revised by Paul Mensonides (2002) */
    1.14 +# /* **************************************************************************
    1.15 +#  *                                                                          *
    1.16 +#  *     (C) Copyright Paul Mensonides 2002.
    1.17 +#  *     Distributed under the Boost Software License, Version 1.0. (See
    1.18 +#  *     accompanying file LICENSE_1_0.txt or copy at
    1.19 +#  *     http://www.boost.org/LICENSE_1_0.txt)
    1.20 +#  *                                                                          *
    1.21 +#  ************************************************************************** */
    1.22  #
    1.23  # /* See http://www.boost.org for most recent version. */
    1.24  #
    1.25 -# ifndef BOOST_PREPROCESSOR_TUPLE_REVERSE_HPP
    1.26 -# define BOOST_PREPROCESSOR_TUPLE_REVERSE_HPP
    1.27 +# ifndef BOOST_PREPROCESSOR_ARRAY_REVERSE_HPP
    1.28 +# define BOOST_PREPROCESSOR_ARRAY_REVERSE_HPP
    1.29  #
    1.30 +# include <boost/preprocessor/array/data.hpp>
    1.31 +# include <boost/preprocessor/array/size.hpp>
    1.32  # include <boost/preprocessor/config/config.hpp>
    1.33 +# include <boost/preprocessor/tuple/reverse.hpp>
    1.34  #
    1.35 -# /* BOOST_PP_TUPLE_REVERSE */
    1.36 +# /* BOOST_PP_ARRAY_REVERSE */
    1.37  #
    1.38 -# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
    1.39 -#    define BOOST_PP_TUPLE_REVERSE(size, tuple) BOOST_PP_TUPLE_REVERSE_I(size, tuple)
    1.40 -#    if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
    1.41 -#        define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_ ## s t
    1.42 -#    else
    1.43 -#        define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_II(BOOST_PP_TUPLE_REVERSE_ ## s t)
    1.44 -#        define BOOST_PP_TUPLE_REVERSE_II(res) res
    1.45 -#    endif
    1.46 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.47 +#    define BOOST_PP_ARRAY_REVERSE(array) (BOOST_PP_ARRAY_SIZE(array), BOOST_PP_TUPLE_REVERSE(BOOST_PP_ARRAY_SIZE(array), BOOST_PP_ARRAY_DATA(array)))
    1.48  # else
    1.49 -#    define BOOST_PP_TUPLE_REVERSE(size, tuple) BOOST_PP_TUPLE_REVERSE_OO((size, tuple))
    1.50 -#    define BOOST_PP_TUPLE_REVERSE_OO(par) BOOST_PP_TUPLE_REVERSE_I ## par
    1.51 -#    define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_ ## s ## t
    1.52 +#    define BOOST_PP_ARRAY_REVERSE(array) BOOST_PP_ARRAY_REVERSE_I(array)
    1.53 +#    define BOOST_PP_ARRAY_REVERSE_I(array) (BOOST_PP_ARRAY_SIZE(array), BOOST_PP_TUPLE_REVERSE(BOOST_PP_ARRAY_SIZE(array), BOOST_PP_ARRAY_DATA(array)))
    1.54  # endif
    1.55  #
    1.56 -# define BOOST_PP_TUPLE_REVERSE_0() ()
    1.57 -# define BOOST_PP_TUPLE_REVERSE_1(a) (a)
    1.58 -# define BOOST_PP_TUPLE_REVERSE_2(a, b) (b, a)
    1.59 -# define BOOST_PP_TUPLE_REVERSE_3(a, b, c) (c, b, a)
    1.60 -# define BOOST_PP_TUPLE_REVERSE_4(a, b, c, d) (d, c, b, a)
    1.61 -# define BOOST_PP_TUPLE_REVERSE_5(a, b, c, d, e) (e, d, c, b, a)
    1.62 -# define BOOST_PP_TUPLE_REVERSE_6(a, b, c, d, e, f) (f, e, d, c, b, a)
    1.63 -# define BOOST_PP_TUPLE_REVERSE_7(a, b, c, d, e, f, g) (g, f, e, d, c, b, a)
    1.64 -# define BOOST_PP_TUPLE_REVERSE_8(a, b, c, d, e, f, g, h) (h, g, f, e, d, c, b, a)
    1.65 -# define BOOST_PP_TUPLE_REVERSE_9(a, b, c, d, e, f, g, h, i) (i, h, g, f, e, d, c, b, a)
    1.66 -# define BOOST_PP_TUPLE_REVERSE_10(a, b, c, d, e, f, g, h, i, j) (j, i, h, g, f, e, d, c, b, a)
    1.67 -# define BOOST_PP_TUPLE_REVERSE_11(a, b, c, d, e, f, g, h, i, j, k) (k, j, i, h, g, f, e, d, c, b, a)
    1.68 -# define BOOST_PP_TUPLE_REVERSE_12(a, b, c, d, e, f, g, h, i, j, k, l) (l, k, j, i, h, g, f, e, d, c, b, a)
    1.69 -# define BOOST_PP_TUPLE_REVERSE_13(a, b, c, d, e, f, g, h, i, j, k, l, m) (m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.70 -# define BOOST_PP_TUPLE_REVERSE_14(a, b, c, d, e, f, g, h, i, j, k, l, m, n) (n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.71 -# define BOOST_PP_TUPLE_REVERSE_15(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) (o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.72 -# define BOOST_PP_TUPLE_REVERSE_16(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) (p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.73 -# define BOOST_PP_TUPLE_REVERSE_17(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q) (q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.74 -# define BOOST_PP_TUPLE_REVERSE_18(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r) (r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.75 -# define BOOST_PP_TUPLE_REVERSE_19(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s) (s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.76 -# define BOOST_PP_TUPLE_REVERSE_20(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t) (t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.77 -# define BOOST_PP_TUPLE_REVERSE_21(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u) (u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.78 -# define BOOST_PP_TUPLE_REVERSE_22(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v) (v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.79 -# define BOOST_PP_TUPLE_REVERSE_23(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w) (w, v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.80 -# define BOOST_PP_TUPLE_REVERSE_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) (x, w, v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.81 -# define BOOST_PP_TUPLE_REVERSE_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) (y, x, w, v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a)
    1.82 -#
    1.83  # endif