forked from boostorg/preprocessor
33 lines
1.4 KiB
C++
33 lines
1.4 KiB
C++
![]() |
# /* **************************************************************************
|
||
|
# * *
|
||
|
# * (C) Copyright Paul Mensonides 2002. Permission to copy, use, *
|
||
|
# * modify, sell, and distribute this software is granted provided *
|
||
|
# * this copyright notice appears in all copies. This software is *
|
||
|
# * provided "as is" without express or implied warranty, and with *
|
||
|
# * no claim at to its suitability for any purpose. *
|
||
|
# * *
|
||
|
# ************************************************************************** */
|
||
|
#
|
||
|
# /* See http://www.boost.org for most recent version. */
|
||
|
#
|
||
|
# ifndef BOOST_PREPROCESSOR_FACILITIES_APPLY_HPP
|
||
|
# define BOOST_PREPROCESSOR_FACILITIES_APPLY_HPP
|
||
|
#
|
||
|
# include <boost/preprocessor/cat.hpp>
|
||
|
# include <boost/preprocessor/config/config.hpp>
|
||
|
# include <boost/preprocessor/control/expr_iif.hpp>
|
||
|
# include <boost/preprocessor/detail/is_unary.hpp>
|
||
|
# include <boost/preprocessor/tuple/rem.hpp>
|
||
|
#
|
||
|
# /* BOOST_PP_APPLY */
|
||
|
#
|
||
|
# if ~BOOST_PP_CONFIG_FLAGS & BOOST_PP_CONFIG_EDG
|
||
|
# define BOOST_PP_APPLY BOOST_PP_APPLY_I
|
||
|
# else
|
||
|
# define BOOST_PP_APPLY(x) BOOST_PP_APPLY_I(x)
|
||
|
# endif
|
||
|
#
|
||
|
# define BOOST_PP_APPLY_I(x) BOOST_PP_EXPR_IIF(BOOST_PP_IS_UNARY(x), BOOST_PP_TUPLE_REM_1 x)
|
||
|
#
|
||
|
# endif
|