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/aux_/basic_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
27 int N, typename U1, typename U2, typename U3, typename U4, typename U5
\r
29 struct resolve_bind_arg< arg<N>, U1, U2, U3, U4, U5 >
\r
31 typedef typename apply_wrap5<mpl::arg<N>, U1, U2, U3, U4, U5>::type type;
\r
35 typename F, typename T1, typename T2, typename T3, typename T4
\r
36 , typename T5, typename U1, typename U2, typename U3, typename U4
\r
39 struct resolve_bind_arg< bind< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5 >
\r
41 typedef bind< F,T1,T2,T3,T4,T5 > f_;
\r
42 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
53 typename U1 = na, typename U2 = na, typename U3 = na
\r
54 , typename U4 = na, typename U5 = na
\r
59 typedef typename aux::resolve_bind_arg< F,U1,U2,U3,U4,U5 >::type f_;
\r
62 typedef typename apply_wrap0<
\r
72 typename F, typename U1, typename U2, typename U3, typename U4
\r
75 struct resolve_bind_arg<
\r
76 bind0<F>, U1, U2, U3, U4, U5
\r
79 typedef bind0<F> f_;
\r
80 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
85 BOOST_MPL_AUX_ARITY_SPEC(1, bind0)
\r
86 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(1, bind0)
\r
91 struct bind< F,na,na,na,na,na >
\r
97 typename F, typename T1
\r
102 typename U1 = na, typename U2 = na, typename U3 = na
\r
103 , typename U4 = na, typename U5 = na
\r
108 typedef typename aux::resolve_bind_arg< F,U1,U2,U3,U4,U5 >::type f_;
\r
109 typedef aux::resolve_bind_arg< T1,U1,U2,U3,U4,U5 > t1;
\r
112 typedef typename apply_wrap1<
\r
114 , typename t1::type
\r
123 typename F, typename T1, typename U1, typename U2, typename U3
\r
124 , typename U4, typename U5
\r
126 struct resolve_bind_arg<
\r
127 bind1< F,T1 >, U1, U2, U3, U4, U5
\r
130 typedef bind1< F,T1 > f_;
\r
131 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
136 BOOST_MPL_AUX_ARITY_SPEC(2, bind1)
\r
137 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(2, bind1)
\r
140 typename F, typename T1
\r
142 struct bind< F,T1,na,na,na,na >
\r
148 typename F, typename T1, typename T2
\r
153 typename U1 = na, typename U2 = na, typename U3 = na
\r
154 , typename U4 = na, typename U5 = na
\r
159 typedef typename aux::resolve_bind_arg< F,U1,U2,U3,U4,U5 >::type f_;
\r
160 typedef aux::resolve_bind_arg< T1,U1,U2,U3,U4,U5 > t1;
\r
161 typedef aux::resolve_bind_arg< T2,U1,U2,U3,U4,U5 > t2;
\r
164 typedef typename apply_wrap2<
\r
166 , typename t1::type, typename t2::type
\r
175 typename F, typename T1, typename T2, typename U1, typename U2
\r
176 , typename U3, typename U4, typename U5
\r
178 struct resolve_bind_arg<
\r
179 bind2< F,T1,T2 >, U1, U2, U3, U4, U5
\r
182 typedef bind2< F,T1,T2 > f_;
\r
183 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
188 BOOST_MPL_AUX_ARITY_SPEC(3, bind2)
\r
189 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(3, bind2)
\r
192 typename F, typename T1, typename T2
\r
194 struct bind< F,T1,T2,na,na,na >
\r
200 typename F, typename T1, typename T2, typename T3
\r
205 typename U1 = na, typename U2 = na, typename U3 = na
\r
206 , typename U4 = na, typename U5 = na
\r
211 typedef typename aux::resolve_bind_arg< F,U1,U2,U3,U4,U5 >::type f_;
\r
212 typedef aux::resolve_bind_arg< T1,U1,U2,U3,U4,U5 > t1;
\r
213 typedef aux::resolve_bind_arg< T2,U1,U2,U3,U4,U5 > t2;
\r
214 typedef aux::resolve_bind_arg< T3,U1,U2,U3,U4,U5 > t3;
\r
217 typedef typename apply_wrap3<
\r
219 , typename t1::type, typename t2::type, typename t3::type
\r
228 typename F, typename T1, typename T2, typename T3, typename U1
\r
229 , typename U2, typename U3, typename U4, typename U5
\r
231 struct resolve_bind_arg<
\r
232 bind3< F,T1,T2,T3 >, U1, U2, U3, U4, U5
\r
235 typedef bind3< F,T1,T2,T3 > f_;
\r
236 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
241 BOOST_MPL_AUX_ARITY_SPEC(4, bind3)
\r
242 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(4, bind3)
\r
245 typename F, typename T1, typename T2, typename T3
\r
247 struct bind< F,T1,T2,T3,na,na >
\r
248 : bind3< F,T1,T2,T3 >
\r
253 typename F, typename T1, typename T2, typename T3, typename T4
\r
258 typename U1 = na, typename U2 = na, typename U3 = na
\r
259 , typename U4 = na, typename U5 = na
\r
264 typedef typename aux::resolve_bind_arg< F,U1,U2,U3,U4,U5 >::type f_;
\r
265 typedef aux::resolve_bind_arg< T1,U1,U2,U3,U4,U5 > t1;
\r
266 typedef aux::resolve_bind_arg< T2,U1,U2,U3,U4,U5 > t2;
\r
267 typedef aux::resolve_bind_arg< T3,U1,U2,U3,U4,U5 > t3;
\r
268 typedef aux::resolve_bind_arg< T4,U1,U2,U3,U4,U5 > t4;
\r
271 typedef typename apply_wrap4<
\r
273 , typename t1::type, typename t2::type, typename t3::type
\r
274 , typename t4::type
\r
283 typename F, typename T1, typename T2, typename T3, typename T4
\r
284 , typename U1, typename U2, typename U3, typename U4, typename U5
\r
286 struct resolve_bind_arg<
\r
287 bind4< F,T1,T2,T3,T4 >, U1, U2, U3, U4, U5
\r
290 typedef bind4< F,T1,T2,T3,T4 > f_;
\r
291 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
296 BOOST_MPL_AUX_ARITY_SPEC(5, bind4)
\r
297 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(5, bind4)
\r
300 typename F, typename T1, typename T2, typename T3, typename T4
\r
302 struct bind< F,T1,T2,T3,T4,na >
\r
303 : bind4< F,T1,T2,T3,T4 >
\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 typename aux::resolve_bind_arg< F,U1,U2,U3,U4,U5 >::type f_;
\r
321 typedef aux::resolve_bind_arg< T1,U1,U2,U3,U4,U5 > t1;
\r
322 typedef aux::resolve_bind_arg< T2,U1,U2,U3,U4,U5 > t2;
\r
323 typedef aux::resolve_bind_arg< T3,U1,U2,U3,U4,U5 > t3;
\r
324 typedef aux::resolve_bind_arg< T4,U1,U2,U3,U4,U5 > t4;
\r
325 typedef aux::resolve_bind_arg< T5,U1,U2,U3,U4,U5 > t5;
\r
328 typedef typename apply_wrap5<
\r
330 , typename t1::type, typename t2::type, typename t3::type
\r
331 , typename t4::type, typename t5::type
\r
340 typename F, typename T1, typename T2, typename T3, typename T4
\r
341 , typename T5, typename U1, typename U2, typename U3, typename U4
\r
344 struct resolve_bind_arg<
\r
345 bind5< F,T1,T2,T3,T4,T5 >, U1, U2, U3, U4, U5
\r
348 typedef bind5< F,T1,T2,T3,T4,T5 > f_;
\r
349 typedef typename apply_wrap5< f_,U1,U2,U3,U4,U5 >::type type;
\r
354 BOOST_MPL_AUX_ARITY_SPEC(6, bind5)
\r
355 BOOST_MPL_AUX_TEMPLATE_ARITY_SPEC(6, bind5)
\r
357 /// primary template (not a specialization!)
\r
360 typename F, typename T1, typename T2, typename T3, typename T4
\r
364 : bind5< F,T1,T2,T3,T4,T5 >
\r