2 // Copyright Peter Dimov 2001
\r
3 // Copyright Aleksey Gurtovoy 2001-2004
\r
5 // Distributed under the Boost Software License, Version 1.0.
\r
6 // (See accompanying file LICENSE_1_0.txt or copy at
\r
7 // http://www.boost.org/LICENSE_1_0.txt)
\r
10 // Preprocessed version of "boost/mpl/bind.hpp" header
\r
11 // -- DO NOT modify by hand!
\r
13 namespace boost { namespace mpl {
\r
18 typename T, typename U1, typename U2, typename U3, typename U4
\r
21 struct resolve_bind_arg
\r
30 struct replace_unnamed_arg
\r
39 struct replace_unnamed_arg< arg< -1 >, Arg >
\r
41 typedef typename Arg::next next;
\r
46 int N, typename U1, typename U2, typename U3, typename U4, typename U5
\r
48 struct resolve_bind_arg< arg<N>, U1, U2, U3, U4, U5 >
\r
50 typedef typename apply_wrap5<mpl::arg<N>, U1, U2, U3, U4, U5>::type type;
\r
54 typename F, typename T1, typename T2, typename T3, typename T4
\r
55 , typename T5, typename U1, typename U2, typename U3, typename U4
\r
58 struct resolve_bind_arg< bind< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5 >
\r
60 typedef bind< F,T1,T2,T3,T4,T5 > f_;
\r
61 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
67 typename F, int dummy_
\r
72 typename U1 = na, typename U2 = na, typename U3 = na
\r
73 , typename U4 = na, typename U5 = na
\r
78 typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0;
\r
79 typedef typename r0::type a0;
\r
80 typedef typename r0::next n1;
\r
81 typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
\r
84 typedef typename apply_wrap0<
\r
94 typename F, typename U1, typename U2, typename U3, typename U4
\r
97 struct resolve_bind_arg<
\r
98 bind0<F>, U1, U2, U3, U4, U5
\r
101 typedef bind0<F> f_;
\r
102 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
107 BOOST_MPL_AUX_ARITY_SPEC(1, bind0)
\r
108 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(1, bind0)
\r
111 typename F, int dummy_
\r
113 struct bind< F,na,na,na,na,na >
\r
119 typename F, typename T1, int dummy_
\r
124 typename U1 = na, typename U2 = na, typename U3 = na
\r
125 , typename U4 = na, typename U5 = na
\r
130 typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0;
\r
131 typedef typename r0::type a0;
\r
132 typedef typename r0::next n1;
\r
133 typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
\r
135 typedef aux::replace_unnamed_arg< T1,n1 > r1;
\r
136 typedef typename r1::type a1;
\r
137 typedef typename r1::next n2;
\r
138 typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1;
\r
141 typedef typename apply_wrap1<
\r
143 , typename t1::type
\r
152 typename F, typename T1, typename U1, typename U2, typename U3
\r
153 , typename U4, typename U5
\r
155 struct resolve_bind_arg<
\r
156 bind1< F,T1 >, U1, U2, U3, U4, U5
\r
159 typedef bind1< F,T1 > f_;
\r
160 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
165 BOOST_MPL_AUX_ARITY_SPEC(2, bind1)
\r
166 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(2, bind1)
\r
169 typename F, typename T1, int dummy_
\r
171 struct bind< F,T1,na,na,na,na >
\r
177 typename F, typename T1, typename T2, int dummy_
\r
182 typename U1 = na, typename U2 = na, typename U3 = na
\r
183 , typename U4 = na, typename U5 = na
\r
188 typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0;
\r
189 typedef typename r0::type a0;
\r
190 typedef typename r0::next n1;
\r
191 typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
\r
193 typedef aux::replace_unnamed_arg< T1,n1 > r1;
\r
194 typedef typename r1::type a1;
\r
195 typedef typename r1::next n2;
\r
196 typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1;
\r
198 typedef aux::replace_unnamed_arg< T2,n2 > r2;
\r
199 typedef typename r2::type a2;
\r
200 typedef typename r2::next n3;
\r
201 typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2;
\r
204 typedef typename apply_wrap2<
\r
206 , typename t1::type, typename t2::type
\r
215 typename F, typename T1, typename T2, typename U1, typename U2
\r
216 , typename U3, typename U4, typename U5
\r
218 struct resolve_bind_arg<
\r
219 bind2< F,T1,T2 >, U1, U2, U3, U4, U5
\r
222 typedef bind2< F,T1,T2 > f_;
\r
223 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
228 BOOST_MPL_AUX_ARITY_SPEC(3, bind2)
\r
229 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(3, bind2)
\r
232 typename F, typename T1, typename T2, int dummy_
\r
234 struct bind< F,T1,T2,na,na,na >
\r
240 typename F, typename T1, typename T2, typename T3, int dummy_
\r
245 typename U1 = na, typename U2 = na, typename U3 = na
\r
246 , typename U4 = na, typename U5 = na
\r
251 typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0;
\r
252 typedef typename r0::type a0;
\r
253 typedef typename r0::next n1;
\r
254 typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
\r
256 typedef aux::replace_unnamed_arg< T1,n1 > r1;
\r
257 typedef typename r1::type a1;
\r
258 typedef typename r1::next n2;
\r
259 typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1;
\r
261 typedef aux::replace_unnamed_arg< T2,n2 > r2;
\r
262 typedef typename r2::type a2;
\r
263 typedef typename r2::next n3;
\r
264 typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2;
\r
266 typedef aux::replace_unnamed_arg< T3,n3 > r3;
\r
267 typedef typename r3::type a3;
\r
268 typedef typename r3::next n4;
\r
269 typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3;
\r
272 typedef typename apply_wrap3<
\r
274 , typename t1::type, typename t2::type, typename t3::type
\r
283 typename F, typename T1, typename T2, typename T3, typename U1
\r
284 , typename U2, typename U3, typename U4, typename U5
\r
286 struct resolve_bind_arg<
\r
287 bind3< F,T1,T2,T3 >, U1, U2, U3, U4, U5
\r
290 typedef bind3< F,T1,T2,T3 > f_;
\r
291 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
296 BOOST_MPL_AUX_ARITY_SPEC(4, bind3)
\r
297 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(4, bind3)
\r
300 typename F, typename T1, typename T2, typename T3, int dummy_
\r
302 struct bind< F,T1,T2,T3,na,na >
\r
303 : bind3< F,T1,T2,T3 >
\r
308 typename F, typename T1, typename T2, typename T3, typename T4
\r
314 typename U1 = na, typename U2 = na, typename U3 = na
\r
315 , typename U4 = na, typename U5 = na
\r
320 typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0;
\r
321 typedef typename r0::type a0;
\r
322 typedef typename r0::next n1;
\r
323 typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
\r
325 typedef aux::replace_unnamed_arg< T1,n1 > r1;
\r
326 typedef typename r1::type a1;
\r
327 typedef typename r1::next n2;
\r
328 typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1;
\r
330 typedef aux::replace_unnamed_arg< T2,n2 > r2;
\r
331 typedef typename r2::type a2;
\r
332 typedef typename r2::next n3;
\r
333 typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2;
\r
335 typedef aux::replace_unnamed_arg< T3,n3 > r3;
\r
336 typedef typename r3::type a3;
\r
337 typedef typename r3::next n4;
\r
338 typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3;
\r
340 typedef aux::replace_unnamed_arg< T4,n4 > r4;
\r
341 typedef typename r4::type a4;
\r
342 typedef typename r4::next n5;
\r
343 typedef aux::resolve_bind_arg< a4,U1,U2,U3,U4,U5 > t4;
\r
346 typedef typename apply_wrap4<
\r
348 , typename t1::type, typename t2::type, typename t3::type
\r
349 , typename t4::type
\r
358 typename F, typename T1, typename T2, typename T3, typename T4
\r
359 , typename U1, typename U2, typename U3, typename U4, typename U5
\r
361 struct resolve_bind_arg<
\r
362 bind4< F,T1,T2,T3,T4 >, U1, U2, U3, U4, U5
\r
365 typedef bind4< F,T1,T2,T3,T4 > f_;
\r
366 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
371 BOOST_MPL_AUX_ARITY_SPEC(5, bind4)
\r
372 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(5, bind4)
\r
375 typename F, typename T1, typename T2, typename T3, typename T4
\r
378 struct bind< F,T1,T2,T3,T4,na >
\r
379 : bind4< F,T1,T2,T3,T4 >
\r
384 typename F, typename T1, typename T2, typename T3, typename T4
\r
385 , typename T5, int dummy_
\r
390 typename U1 = na, typename U2 = na, typename U3 = na
\r
391 , typename U4 = na, typename U5 = na
\r
396 typedef aux::replace_unnamed_arg< F, mpl::arg<1> > r0;
\r
397 typedef typename r0::type a0;
\r
398 typedef typename r0::next n1;
\r
399 typedef typename aux::resolve_bind_arg< a0,U1,U2,U3,U4,U5 >::type f_;
\r
401 typedef aux::replace_unnamed_arg< T1,n1 > r1;
\r
402 typedef typename r1::type a1;
\r
403 typedef typename r1::next n2;
\r
404 typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1;
\r
406 typedef aux::replace_unnamed_arg< T2,n2 > r2;
\r
407 typedef typename r2::type a2;
\r
408 typedef typename r2::next n3;
\r
409 typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2;
\r
411 typedef aux::replace_unnamed_arg< T3,n3 > r3;
\r
412 typedef typename r3::type a3;
\r
413 typedef typename r3::next n4;
\r
414 typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3;
\r
416 typedef aux::replace_unnamed_arg< T4,n4 > r4;
\r
417 typedef typename r4::type a4;
\r
418 typedef typename r4::next n5;
\r
419 typedef aux::resolve_bind_arg< a4,U1,U2,U3,U4,U5 > t4;
\r
421 typedef aux::replace_unnamed_arg< T5,n5 > r5;
\r
422 typedef typename r5::type a5;
\r
423 typedef typename r5::next n6;
\r
424 typedef aux::resolve_bind_arg< a5,U1,U2,U3,U4,U5 > t5;
\r
427 typedef typename apply_wrap5<
\r
429 , typename t1::type, typename t2::type, typename t3::type
\r
430 , typename t4::type, typename t5::type
\r
439 typename F, typename T1, typename T2, typename T3, typename T4
\r
440 , typename T5, typename U1, typename U2, typename U3, typename U4
\r
443 struct resolve_bind_arg<
\r
444 bind5< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5
\r
447 typedef bind5< F,T1,T2,T3,T4,T5 > f_;
\r
448 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
453 BOOST_MPL_AUX_ARITY_SPEC(6, bind5)
\r
454 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(6, bind5)
\r
456 /// primary template (not a specialization!)
\r
459 typename F, typename T1, typename T2, typename T3, typename T4
\r
460 , typename T5, int dummy_
\r
463 : bind5< F,T1,T2,T3,T4,T5 >
\r
467 /// if_/eval_if specializations
\r
468 template< template< typename T1, typename T2, typename T3 > class F, typename Tag >
\r
471 template< typename T1, typename T2, typename T3 > struct if_;
\r
474 typename Tag, typename T1, typename T2, typename T3
\r
482 typename U1 = na, typename U2 = na, typename U3 = na
\r
483 , typename U4 = na, typename U5 = na
\r
488 typedef mpl::arg<1> n1;
\r
489 typedef aux::replace_unnamed_arg< T1,n1 > r1;
\r
490 typedef typename r1::type a1;
\r
491 typedef typename r1::next n2;
\r
492 typedef aux::resolve_bind_arg< a1,U1,U2,U3,U4,U5 > t1;
\r
494 typedef aux::replace_unnamed_arg< T2,n2 > r2;
\r
495 typedef typename r2::type a2;
\r
496 typedef typename r2::next n3;
\r
497 typedef aux::resolve_bind_arg< a2,U1,U2,U3,U4,U5 > t2;
\r
499 typedef aux::replace_unnamed_arg< T3,n3 > r3;
\r
500 typedef typename r3::type a3;
\r
501 typedef typename r3::next n4;
\r
502 typedef aux::resolve_bind_arg< a3,U1,U2,U3,U4,U5 > t3;
\r
504 typedef typename if_<
\r
510 typedef typename f_::type type;
\r