epoc32/include/stdapis/boost/preprocessor/array/pop_front.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/array/pop_front.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,38 @@
     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_ARRAY_POP_FRONT_HPP
    1.16 +# define BOOST_PREPROCESSOR_ARRAY_POP_FRONT_HPP
    1.17 +#
    1.18 +# include <boost/preprocessor/arithmetic/dec.hpp>
    1.19 +# include <boost/preprocessor/arithmetic/inc.hpp>
    1.20 +# include <boost/preprocessor/array/elem.hpp>
    1.21 +# include <boost/preprocessor/array/size.hpp>
    1.22 +# include <boost/preprocessor/repetition/enum.hpp>
    1.23 +# include <boost/preprocessor/repetition/deduce_z.hpp>
    1.24 +#
    1.25 +# /* BOOST_PP_ARRAY_POP_FRONT */
    1.26 +#
    1.27 +# define BOOST_PP_ARRAY_POP_FRONT(array) BOOST_PP_ARRAY_POP_FRONT_Z(BOOST_PP_DEDUCE_Z(), array)
    1.28 +#
    1.29 +# /* BOOST_PP_ARRAY_POP_FRONT_Z */
    1.30 +#
    1.31 +# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
    1.32 +#    define BOOST_PP_ARRAY_POP_FRONT_Z(z, array) BOOST_PP_ARRAY_POP_FRONT_I(z, BOOST_PP_ARRAY_SIZE(array), array)
    1.33 +# else
    1.34 +#    define BOOST_PP_ARRAY_POP_FRONT_Z(z, array) BOOST_PP_ARRAY_POP_FRONT_Z_D(z, array)
    1.35 +#    define BOOST_PP_ARRAY_POP_FRONT_Z_D(z, array) BOOST_PP_ARRAY_POP_FRONT_I(z, BOOST_PP_ARRAY_SIZE(array), array)
    1.36 +# endif
    1.37 +#
    1.38 +# define BOOST_PP_ARRAY_POP_FRONT_I(z, size, array) (BOOST_PP_DEC(size), (BOOST_PP_ENUM_ ## z(BOOST_PP_DEC(size), BOOST_PP_ARRAY_POP_FRONT_M, array)))
    1.39 +# define BOOST_PP_ARRAY_POP_FRONT_M(z, n, data) BOOST_PP_ARRAY_ELEM(BOOST_PP_INC(n), data)
    1.40 +#
    1.41 +# endif