You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
37 lines
1.7 KiB
37 lines
1.7 KiB
# /* ************************************************************************** |
|
# * * |
|
# * (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 BOOST_PREPROCESSOR_ARRAY_POP_BACK_HPP |
|
# define BOOST_PREPROCESSOR_ARRAY_POP_BACK_HPP |
|
# |
|
# include <boost/preprocessor/arithmetic/dec.hpp> |
|
# include <boost/preprocessor/array/elem.hpp> |
|
# include <boost/preprocessor/array/size.hpp> |
|
# include <boost/preprocessor/repetition/enum.hpp> |
|
# include <boost/preprocessor/repetition/deduce_z.hpp> |
|
# |
|
# /* BOOST_PP_ARRAY_POP_BACK */ |
|
# |
|
# define BOOST_PP_ARRAY_POP_BACK(array) BOOST_PP_ARRAY_POP_BACK_Z(BOOST_PP_DEDUCE_Z(), array) |
|
# |
|
# /* BOOST_PP_ARRAY_POP_BACK_Z */ |
|
# |
|
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG() |
|
# define BOOST_PP_ARRAY_POP_BACK_Z(z, array) BOOST_PP_ARRAY_POP_BACK_I(z, BOOST_PP_ARRAY_SIZE(array), array) |
|
# else |
|
# define BOOST_PP_ARRAY_POP_BACK_Z(z, array) BOOST_PP_ARRAY_POP_BACK_Z_D(z, array) |
|
# define BOOST_PP_ARRAY_POP_BACK_Z_D(z, array) BOOST_PP_ARRAY_POP_BACK_I(z, BOOST_PP_ARRAY_SIZE(array), array) |
|
# endif |
|
# |
|
# define BOOST_PP_ARRAY_POP_BACK_I(z, size, array) (BOOST_PP_DEC(size), (BOOST_PP_ENUM_ ## z(BOOST_PP_DEC(size), BOOST_PP_ARRAY_POP_BACK_M, array))) |
|
# define BOOST_PP_ARRAY_POP_BACK_M(z, n, data) BOOST_PP_ARRAY_ELEM(n, data) |
|
# |
|
# endif
|
|
|