# /* ************************************************************************** # * * # * (C) Copyright Paul Mensonides 2002. # * Distributed under the Boost Software License, Version 1.0. (See # * accompanying file LICENSE_1_0.txt or copy at # * http://www.boost.org/LICENSE_1_0.txt) # * * # ************************************************************************** */ # # /* See http://www.boost.org for most recent version. */ # # ifndef ACTIV_BOOST_PREPROCESSOR_ARRAY_POP_FRONT_HPP # define ACTIV_BOOST_PREPROCESSOR_ARRAY_POP_FRONT_HPP # # include # include # include # include # include # include # # /* ACTIV_BOOST_PP_ARRAY_POP_FRONT */ # # define ACTIV_BOOST_PP_ARRAY_POP_FRONT(array) ACTIV_BOOST_PP_ARRAY_POP_FRONT_Z(ACTIV_BOOST_PP_DEDUCE_Z(), array) # # /* ACTIV_BOOST_PP_ARRAY_POP_FRONT_Z */ # # if ~ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_EDG() # define ACTIV_BOOST_PP_ARRAY_POP_FRONT_Z(z, array) ACTIV_BOOST_PP_ARRAY_POP_FRONT_I(z, ACTIV_BOOST_PP_ARRAY_SIZE(array), array) # else # define ACTIV_BOOST_PP_ARRAY_POP_FRONT_Z(z, array) ACTIV_BOOST_PP_ARRAY_POP_FRONT_Z_D(z, array) # define ACTIV_BOOST_PP_ARRAY_POP_FRONT_Z_D(z, array) ACTIV_BOOST_PP_ARRAY_POP_FRONT_I(z, ACTIV_BOOST_PP_ARRAY_SIZE(array), array) # endif # # define ACTIV_BOOST_PP_ARRAY_POP_FRONT_I(z, size, array) (ACTIV_BOOST_PP_DEC(size), (ACTIV_BOOST_PP_ENUM_ ## z(ACTIV_BOOST_PP_DEC(size), ACTIV_BOOST_PP_ARRAY_POP_FRONT_M, array))) # define ACTIV_BOOST_PP_ARRAY_POP_FRONT_M(z, n, data) ACTIV_BOOST_PP_ARRAY_ELEM(ACTIV_BOOST_PP_INC(n), data) # # endif