epoc32/include/stdapis/boost/preprocessor/seq/reverse.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
# /* **************************************************************************
williamr@4
     2
#  *                                                                          *
williamr@4
     3
#  *     (C) Copyright Paul Mensonides 2002.
williamr@4
     4
#  *     Distributed under the Boost Software License, Version 1.0. (See
williamr@4
     5
#  *     accompanying file LICENSE_1_0.txt or copy at
williamr@4
     6
#  *     http://www.boost.org/LICENSE_1_0.txt)
williamr@4
     7
#  *                                                                          *
williamr@4
     8
#  ************************************************************************** */
williamr@4
     9
#
williamr@4
    10
# /* See http://www.boost.org for most recent version. */
williamr@4
    11
#
williamr@4
    12
# ifndef BOOST_PREPROCESSOR_SEQ_REVERSE_HPP
williamr@4
    13
# define BOOST_PREPROCESSOR_SEQ_REVERSE_HPP
williamr@4
    14
#
williamr@4
    15
# include <boost/preprocessor/config/config.hpp>
williamr@4
    16
# include <boost/preprocessor/facilities/empty.hpp>
williamr@4
    17
# include <boost/preprocessor/seq/fold_left.hpp>
williamr@4
    18
#
williamr@4
    19
# /* BOOST_PP_SEQ_REVERSE */
williamr@4
    20
#
williamr@4
    21
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
williamr@4
    22
#    define BOOST_PP_SEQ_REVERSE(seq) BOOST_PP_SEQ_FOLD_LEFT(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
williamr@4
    23
# else
williamr@4
    24
#    define BOOST_PP_SEQ_REVERSE(seq) BOOST_PP_SEQ_REVERSE_I(seq)
williamr@4
    25
#    define BOOST_PP_SEQ_REVERSE_I(seq) BOOST_PP_SEQ_FOLD_LEFT(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
williamr@4
    26
# endif
williamr@4
    27
#
williamr@4
    28
# define BOOST_PP_SEQ_REVERSE_O(s, state, elem) (elem) state
williamr@4
    29
#
williamr@4
    30
# /* BOOST_PP_SEQ_REVERSE_S */
williamr@4
    31
#
williamr@4
    32
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
williamr@4
    33
#    define BOOST_PP_SEQ_REVERSE_S(s, seq) BOOST_PP_SEQ_FOLD_LEFT_ ## s(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
williamr@4
    34
# else
williamr@4
    35
#    define BOOST_PP_SEQ_REVERSE_S(s, seq) BOOST_PP_SEQ_REVERSE_S_I(s, seq)
williamr@4
    36
#    define BOOST_PP_SEQ_REVERSE_S_I(s, seq) BOOST_PP_SEQ_FOLD_LEFT_ ## s(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
williamr@4
    37
# endif
williamr@4
    38
#
williamr@4
    39
# endif