2 #if !defined(BOOST_PP_IS_ITERATING) 6 #ifndef BOOST_MPL_AUX_FULL_LAMBDA_HPP_INCLUDED 7 #define BOOST_MPL_AUX_FULL_LAMBDA_HPP_INCLUDED 21 #if !defined(BOOST_MPL_PREPROCESSING_MODE) 32 # if defined(BOOST_MPL_CFG_EXTENDED_TEMPLATE_PARAMETERS_MATCHING) 40 #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \ 41 && !defined(BOOST_MPL_PREPROCESSING_MODE) 43 # define BOOST_MPL_PREPROCESSED_HEADER full_lambda.hpp 52 # include <boost/mpl/aux_/preprocessor/repeat.hpp> 53 # include <boost/mpl/aux_/config/dmc_ambiguous_ctps.hpp> 63 # define AUX778076_LAMBDA_PARAMS(i_, param) \ 64 BOOST_MPL_PP_PARAMS(i_, param) \ 67 # define AUX778076_BIND_PARAMS(param) \ 68 BOOST_MPL_PP_PARAMS( \ 69 BOOST_MPL_LIMIT_METAFUNCTION_ARITY \ 74 # define AUX778076_BIND_N_PARAMS(i_, param) \ 75 BOOST_PP_COMMA_IF(i_) \ 76 BOOST_MPL_PP_PARAMS(i_, param) \ 79 # define AUX778076_ARITY_PARAM(param) \ 80 BOOST_MPL_AUX_LAMBDA_ARITY_PARAM(param) \ 84 #define n_ BOOST_MPL_LIMIT_METAFUNCTION_ARITY 96 struct lambda_or< BOOST_MPL_PP_ENUM(n_,false) >
107 AUX778076_ARITY_PARAM(
typename Arity)
119 struct is_lambda_expression
125 template<
int N,
typename Tag >
126 struct lambda< arg<N>,Tag AUX778076_ARITY_PARAM(int_<-1>) >
129 typedef mpl::arg<N> result_;
134 #define BOOST_PP_ITERATION_PARAMS_1 \ 135 (3,(0, BOOST_MPL_LIMIT_METAFUNCTION_ARITY, <boost/mpl/aux_/full_lambda.hpp>)) 136 #include BOOST_PP_ITERATE() 139 template<
typename T,
typename Tag >
140 struct lambda< mpl::protect<T>,Tag AUX778076_ARITY_PARAM(int_<1>) >
144 typedef result_
type;
149 typename F, AUX778076_BIND_PARAMS(
typename T)
153 bind<F,AUX778076_BIND_PARAMS(T)>
155 AUX778076_ARITY_PARAM(int_<BOOST_PP_INC(BOOST_MPL_LIMIT_METAFUNCTION_ARITY)>)
159 typedef bind<F, AUX778076_BIND_PARAMS(T)> result_;
160 typedef result_
type;
164 #if defined(BOOST_MPL_CFG_EXTENDED_TEMPLATE_PARAMETERS_MATCHING) 178 typedef lambda< F,Tag2 > l1;
179 typedef lambda< Tag1,Tag2 > l2;
181 typedef typename l1::is_le is_le;
182 typedef bind1< quote1<aux::template_arity>,
typename l1::result_ > arity_;
185 typedef aux::le_result3<is_le, Tag2, mpl::lambda, l1, l2, l3> le_result_;
186 typedef typename le_result_::result_ result_;
190 #elif !defined(BOOST_MPL_CFG_DMC_AMBIGUOUS_CTPS) 194 typename F,
typename Tag1,
typename Tag2
201 typedef lambda< F,Tag2 > l1;
202 typedef lambda< Tag1,Tag2 > l2;
204 typedef typename l1::is_le is_le;
205 typedef aux::le_result2<is_le, Tag2, mpl::lambda, l1, l2> le_result_;
206 typedef typename le_result_::result_ result_;
212 # undef AUX778076_ARITY_PARAM 213 # undef AUX778076_BIND_N_PARAMS 214 # undef AUX778076_BIND_PARAMS 215 # undef AUX778076_LAMBDA_PARAMS 217 #if !defined(BOOST_MPL_CFG_EXTENDED_TEMPLATE_PARAMETERS_MATCHING) 225 #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS 226 #endif // BOOST_MPL_AUX_FULL_LAMBDA_HPP_INCLUDED 232 #else // BOOST_PP_IS_ITERATING 233 #if BOOST_PP_ITERATION_DEPTH() == 1 234 #define i_ BOOST_PP_FRAME_ITERATION(1) 240 # define AUX778076_RESULT(unused, i_, T) \ 241 BOOST_PP_COMMA_IF(i_) \ 242 typename BOOST_PP_CAT(T, BOOST_PP_INC(i_))::result_ \ 245 # define AUX778076_TYPE(unused, i_, T) \ 246 BOOST_PP_COMMA_IF(i_) \ 247 typename BOOST_PP_CAT(T, BOOST_PP_INC(i_))::type \ 251 typename IsLE,
typename Tag
252 ,
template< AUX778076_LAMBDA_PARAMS(i_,
typename P) >
class F
253 , AUX778076_LAMBDA_PARAMS(i_,
typename L)
258 BOOST_MPL_PP_REPEAT(i_, AUX778076_TYPE, L)
261 typedef result_
type;
266 ,
template< AUX778076_LAMBDA_PARAMS(i_,
typename P) >
class F
267 , AUX778076_LAMBDA_PARAMS(i_,
typename L)
269 struct BOOST_PP_CAT(le_result,i_)< true_,Tag,F,AUX778076_LAMBDA_PARAMS(i_, L) >
273 , BOOST_MPL_PP_REPEAT(i_, AUX778076_RESULT, L)
279 # undef AUX778076_TYPE 280 # undef AUX778076_RESULT 285 # define AUX778076_LAMBDA_TYPEDEF(unused, i_, T) \ 286 typedef lambda< BOOST_PP_CAT(T, BOOST_PP_INC(i_)), Tag > \ 287 BOOST_PP_CAT(l,BOOST_PP_INC(i_)); \ 290 # define AUX778076_IS_LE_TYPEDEF(unused, i_, unused2) \ 291 typedef typename BOOST_PP_CAT(l,BOOST_PP_INC(i_))::is_le \ 292 BOOST_PP_CAT(is_le,BOOST_PP_INC(i_)); \ 295 # define AUX778076_IS_LAMBDA_EXPR(unused, i_, unused2) \ 296 BOOST_PP_COMMA_IF(i_) \ 297 BOOST_PP_CAT(is_le,BOOST_PP_INC(i_))::value \ 301 template< AUX778076_LAMBDA_PARAMS(i_,
typename P) >
class F
302 , AUX778076_LAMBDA_PARAMS(i_,
typename T)
306 F<AUX778076_LAMBDA_PARAMS(i_, T)>
308 AUX778076_ARITY_PARAM(int_<i_>)
311 BOOST_MPL_PP_REPEAT(i_, AUX778076_LAMBDA_TYPEDEF, T)
312 BOOST_MPL_PP_REPEAT(i_, AUX778076_IS_LE_TYPEDEF, unused)
314 typedef typename aux::lambda_or<
315 BOOST_MPL_PP_REPEAT(i_, AUX778076_IS_LAMBDA_EXPR, unused)
319 is_le, Tag, F, AUX778076_LAMBDA_PARAMS(i_, l)
322 typedef typename le_result_::result_ result_;
327 # undef AUX778076_IS_LAMBDA_EXPR 328 # undef AUX778076_IS_LE_TYPEDEF 329 # undef AUX778076_LAMBDA_TYPEDEF 334 typename F AUX778076_BIND_N_PARAMS(i_,
typename T)
338 BOOST_PP_CAT(bind,i_)<F AUX778076_BIND_N_PARAMS(i_, T)>
340 AUX778076_ARITY_PARAM(int_<BOOST_PP_INC(i_)>)
346 AUX778076_BIND_N_PARAMS(i_, T)
349 typedef result_
type;
353 #endif // BOOST_PP_ITERATION_DEPTH() 354 #endif // BOOST_PP_IS_ITERATING
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
#define BOOST_MPL_AUX_NA_SPEC(i, name)
#define BOOST_MPL_AUX_NA_SPEC2(i, j, name)
#define BOOST_MPL_PP_DEFAULT_PARAMS(n, p, v)
#define BOOST_PP_CAT(a, b)