File indexing completed on 2025-01-18 09:41:37
0001
0002 #ifndef BOOST_MPL_AUX_PREPROCESSOR_DEFAULT_PARAMS_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_PREPROCESSOR_DEFAULT_PARAMS_HPP_INCLUDED
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include <boost/mpl/aux_/config/preprocessor.hpp>
0018
0019
0020
0021
0022
0023
0024 #if !defined(BOOST_MPL_CFG_NO_OWN_PP_PRIMITIVES)
0025
0026 # include <boost/preprocessor/cat.hpp>
0027
0028 # define BOOST_MPL_PP_DEFAULT_PARAMS(n,p,v) \
0029 BOOST_PP_CAT(BOOST_MPL_PP_DEFAULT_PARAMS_,n)(p,v) \
0030
0031
0032 # define BOOST_MPL_PP_DEFAULT_PARAMS_0(p,v)
0033 # define BOOST_MPL_PP_DEFAULT_PARAMS_1(p,v) p##1=v
0034 # define BOOST_MPL_PP_DEFAULT_PARAMS_2(p,v) p##1=v,p##2=v
0035 # define BOOST_MPL_PP_DEFAULT_PARAMS_3(p,v) p##1=v,p##2=v,p##3=v
0036 # define BOOST_MPL_PP_DEFAULT_PARAMS_4(p,v) p##1=v,p##2=v,p##3=v,p##4=v
0037 # define BOOST_MPL_PP_DEFAULT_PARAMS_5(p,v) p##1=v,p##2=v,p##3=v,p##4=v,p##5=v
0038 # define BOOST_MPL_PP_DEFAULT_PARAMS_6(p,v) p##1=v,p##2=v,p##3=v,p##4=v,p##5=v,p##6=v
0039 # define BOOST_MPL_PP_DEFAULT_PARAMS_7(p,v) p##1=v,p##2=v,p##3=v,p##4=v,p##5=v,p##6=v,p##7=v
0040 # define BOOST_MPL_PP_DEFAULT_PARAMS_8(p,v) p##1=v,p##2=v,p##3=v,p##4=v,p##5=v,p##6=v,p##7=v,p##8=v
0041 # define BOOST_MPL_PP_DEFAULT_PARAMS_9(p,v) p##1=v,p##2=v,p##3=v,p##4=v,p##5=v,p##6=v,p##7=v,p##8=v,p##9=v
0042
0043 #else
0044
0045 # include <boost/preprocessor/tuple/elem.hpp>
0046 # include <boost/preprocessor/comma_if.hpp>
0047 # include <boost/preprocessor/repeat.hpp>
0048 # include <boost/preprocessor/inc.hpp>
0049 # include <boost/preprocessor/cat.hpp>
0050
0051 # define BOOST_MPL_PP_AUX_DEFAULT_PARAM_FUNC(unused, i, pv) \
0052 BOOST_PP_COMMA_IF(i) \
0053 BOOST_PP_CAT( BOOST_PP_TUPLE_ELEM(2,0,pv), BOOST_PP_INC(i) ) \
0054 = BOOST_PP_TUPLE_ELEM(2,1,pv) \
0055
0056
0057 # define BOOST_MPL_PP_DEFAULT_PARAMS(n, param, value) \
0058 BOOST_PP_REPEAT( \
0059 n \
0060 , BOOST_MPL_PP_AUX_DEFAULT_PARAM_FUNC \
0061 , (param,value) \
0062 ) \
0063
0064
0065 #endif
0066
0067 #endif