]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/preprocessor/list/reverse.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
88e6d85bce995f390fa8164156fd9d2fe31bf37d
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / preprocessor / list / reverse.hpp
1 # /* Copyright (C) 2001\r
2 #  * Housemarque Oy\r
3 #  * http://www.housemarque.com\r
4 #  *\r
5 #  * Distributed under the Boost Software License, Version 1.0. (See\r
6 #  * accompanying file LICENSE_1_0.txt or copy at\r
7 #  * http://www.boost.org/LICENSE_1_0.txt)\r
8 #  */\r
9 #\r
10 # /* Revised by Paul Mensonides (2002) */\r
11 #\r
12 # /* See http://www.boost.org for most recent version. */\r
13 #\r
14 # ifndef BOOST_PREPROCESSOR_LIST_REVERSE_HPP\r
15 # define BOOST_PREPROCESSOR_LIST_REVERSE_HPP\r
16 #\r
17 # include <boost/preprocessor/config/config.hpp>\r
18 # include <boost/preprocessor/list/fold_left.hpp>\r
19 #\r
20 # /* BOOST_PP_LIST_REVERSE */\r
21 #\r
22 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()\r
23 #    define BOOST_PP_LIST_REVERSE(list) BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_LIST_REVERSE_O, BOOST_PP_NIL, list)\r
24 # else\r
25 #    define BOOST_PP_LIST_REVERSE(list) BOOST_PP_LIST_REVERSE_I(list)\r
26 #    define BOOST_PP_LIST_REVERSE_I(list) BOOST_PP_LIST_FOLD_LEFT(BOOST_PP_LIST_REVERSE_O, BOOST_PP_NIL, list)\r
27 # endif\r
28 #\r
29 # define BOOST_PP_LIST_REVERSE_O(d, s, x) (x, s)\r
30 #\r
31 # /* BOOST_PP_LIST_REVERSE_D */\r
32 #\r
33 # if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()\r
34 #    define BOOST_PP_LIST_REVERSE_D(d, list) BOOST_PP_LIST_FOLD_LEFT_ ## d(BOOST_PP_LIST_REVERSE_O, BOOST_PP_NIL, list)\r
35 # else\r
36 #    define BOOST_PP_LIST_REVERSE_D(d, list) BOOST_PP_LIST_REVERSE_D_I(d, list)\r
37 #    define BOOST_PP_LIST_REVERSE_D_I(d, list) BOOST_PP_LIST_FOLD_LEFT_ ## d(BOOST_PP_LIST_REVERSE_O, BOOST_PP_NIL, list)\r
38 # endif\r
39 #\r
40 # endif\r