epoc32/include/stdapis/boost/preprocessor/array/reverse.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/stdapis/boost/preprocessor/tuple/reverse.hpp@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
# /* Copyright (C) 2001
williamr@2
     2
#  * Housemarque Oy
williamr@2
     3
#  * http://www.housemarque.com
williamr@2
     4
#  *
williamr@2
     5
#  * Distributed under the Boost Software License, Version 1.0. (See
williamr@2
     6
#  * accompanying file LICENSE_1_0.txt or copy at
williamr@2
     7
#  * http://www.boost.org/LICENSE_1_0.txt)
williamr@2
     8
#  */
williamr@2
     9
#
williamr@2
    10
# /* Revised by Paul Mensonides (2002) */
williamr@2
    11
#
williamr@2
    12
# /* See http://www.boost.org for most recent version. */
williamr@2
    13
#
williamr@2
    14
# ifndef BOOST_PREPROCESSOR_TUPLE_REVERSE_HPP
williamr@2
    15
# define BOOST_PREPROCESSOR_TUPLE_REVERSE_HPP
williamr@2
    16
#
williamr@2
    17
# include <boost/preprocessor/config/config.hpp>
williamr@2
    18
#
williamr@2
    19
# /* BOOST_PP_TUPLE_REVERSE */
williamr@2
    20
#
williamr@2
    21
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
williamr@2
    22
#    define BOOST_PP_TUPLE_REVERSE(size, tuple) BOOST_PP_TUPLE_REVERSE_I(size, tuple)
williamr@2
    23
#    if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
williamr@2
    24
#        define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_ ## s t
williamr@2
    25
#    else
williamr@2
    26
#        define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_II(BOOST_PP_TUPLE_REVERSE_ ## s t)
williamr@2
    27
#        define BOOST_PP_TUPLE_REVERSE_II(res) res
williamr@2
    28
#    endif
williamr@2
    29
# else
williamr@2
    30
#    define BOOST_PP_TUPLE_REVERSE(size, tuple) BOOST_PP_TUPLE_REVERSE_OO((size, tuple))
williamr@2
    31
#    define BOOST_PP_TUPLE_REVERSE_OO(par) BOOST_PP_TUPLE_REVERSE_I ## par
williamr@2
    32
#    define BOOST_PP_TUPLE_REVERSE_I(s, t) BOOST_PP_TUPLE_REVERSE_ ## s ## t
williamr@2
    33
# endif
williamr@2
    34
#
williamr@2
    35
# define BOOST_PP_TUPLE_REVERSE_0() ()
williamr@2
    36
# define BOOST_PP_TUPLE_REVERSE_1(a) (a)
williamr@2
    37
# define BOOST_PP_TUPLE_REVERSE_2(a, b) (b, a)
williamr@2
    38
# define BOOST_PP_TUPLE_REVERSE_3(a, b, c) (c, b, a)
williamr@2
    39
# define BOOST_PP_TUPLE_REVERSE_4(a, b, c, d) (d, c, b, a)
williamr@2
    40
# define BOOST_PP_TUPLE_REVERSE_5(a, b, c, d, e) (e, d, c, b, a)
williamr@2
    41
# define BOOST_PP_TUPLE_REVERSE_6(a, b, c, d, e, f) (f, e, d, c, b, a)
williamr@2
    42
# define BOOST_PP_TUPLE_REVERSE_7(a, b, c, d, e, f, g) (g, f, e, d, c, b, a)
williamr@2
    43
# define BOOST_PP_TUPLE_REVERSE_8(a, b, c, d, e, f, g, h) (h, g, f, e, d, c, b, a)
williamr@2
    44
# define BOOST_PP_TUPLE_REVERSE_9(a, b, c, d, e, f, g, h, i) (i, h, g, f, e, d, c, b, a)
williamr@2
    45
# 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)
williamr@2
    46
# 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)
williamr@2
    47
# 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)
williamr@2
    48
# 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)
williamr@2
    49
# 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)
williamr@2
    50
# 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)
williamr@2
    51
# 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)
williamr@2
    52
# 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)
williamr@2
    53
# 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)
williamr@2
    54
# 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)
williamr@2
    55
# 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)
williamr@2
    56
# 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)
williamr@2
    57
# 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)
williamr@2
    58
# 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)
williamr@2
    59
# 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)
williamr@2
    60
# 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)
williamr@2
    61
#
williamr@2
    62
# endif