1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/apply.hpp Wed Mar 31 12:27:01 2010 +0100
1.3 @@ -0,0 +1,34 @@
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_FACILITIES_APPLY_HPP
1.16 +# define BOOST_PREPROCESSOR_FACILITIES_APPLY_HPP
1.17 +#
1.18 +# include <boost/preprocessor/config/config.hpp>
1.19 +# include <boost/preprocessor/control/expr_iif.hpp>
1.20 +# include <boost/preprocessor/detail/is_unary.hpp>
1.21 +# include <boost/preprocessor/tuple/rem.hpp>
1.22 +#
1.23 +# /* BOOST_PP_APPLY */
1.24 +#
1.25 +# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
1.26 +# define BOOST_PP_APPLY(x) BOOST_PP_APPLY_I(x)
1.27 +# define BOOST_PP_APPLY_I(x) BOOST_PP_EXPR_IIF(BOOST_PP_IS_UNARY(x), BOOST_PP_TUPLE_REM_1 x)
1.28 +# elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_BCC()
1.29 +# define BOOST_PP_APPLY(x) BOOST_PP_APPLY_I(x)
1.30 +# define BOOST_PP_APPLY_I(x) BOOST_PP_APPLY_ ## x
1.31 +# define BOOST_PP_APPLY_(x) x
1.32 +# define BOOST_PP_APPLY_BOOST_PP_NIL
1.33 +# else
1.34 +# define BOOST_PP_APPLY(x) BOOST_PP_EXPR_IIF(BOOST_PP_IS_UNARY(x), BOOST_PP_TUPLE_REM_1 x)
1.35 +# endif
1.36 +#
1.37 +# endif