epoc32/include/stdapis/boost/preprocessor/seq/reverse.hpp
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/preprocessor/seq/reverse.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +# /* **************************************************************************
     1.5 +#  *                                                                          *
     1.6 +#  *     (C) Copyright Paul Mensonides 2002.
     1.7 +#  *     Distributed under the Boost Software License, Version 1.0. (See
     1.8 +#  *     accompanying file LICENSE_1_0.txt or copy at
     1.9 +#  *     http://www.boost.org/LICENSE_1_0.txt)
    1.10 +#  *                                                                          *
    1.11 +#  ************************************************************************** */
    1.12 +#
    1.13 +# /* See http://www.boost.org for most recent version. */
    1.14 +#
    1.15 +# ifndef BOOST_PREPROCESSOR_SEQ_REVERSE_HPP
    1.16 +# define BOOST_PREPROCESSOR_SEQ_REVERSE_HPP
    1.17 +#
    1.18 +# include <boost/preprocessor/config/config.hpp>
    1.19 +# include <boost/preprocessor/facilities/empty.hpp>
    1.20 +# include <boost/preprocessor/seq/fold_left.hpp>
    1.21 +#
    1.22 +# /* BOOST_PP_SEQ_REVERSE */
    1.23 +#
    1.24 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.25 +#    define BOOST_PP_SEQ_REVERSE(seq) BOOST_PP_SEQ_FOLD_LEFT(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
    1.26 +# else
    1.27 +#    define BOOST_PP_SEQ_REVERSE(seq) BOOST_PP_SEQ_REVERSE_I(seq)
    1.28 +#    define BOOST_PP_SEQ_REVERSE_I(seq) BOOST_PP_SEQ_FOLD_LEFT(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
    1.29 +# endif
    1.30 +#
    1.31 +# define BOOST_PP_SEQ_REVERSE_O(s, state, elem) (elem) state
    1.32 +#
    1.33 +# /* BOOST_PP_SEQ_REVERSE_S */
    1.34 +#
    1.35 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.36 +#    define BOOST_PP_SEQ_REVERSE_S(s, seq) BOOST_PP_SEQ_FOLD_LEFT_ ## s(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
    1.37 +# else
    1.38 +#    define BOOST_PP_SEQ_REVERSE_S(s, seq) BOOST_PP_SEQ_REVERSE_S_I(s, seq)
    1.39 +#    define BOOST_PP_SEQ_REVERSE_S_I(s, seq) BOOST_PP_SEQ_FOLD_LEFT_ ## s(BOOST_PP_SEQ_REVERSE_O, BOOST_PP_EMPTY, seq)()
    1.40 +# endif
    1.41 +#
    1.42 +# endif