2 // bind/bind_cc.hpp - support for different calling conventions
\r
4 // Do not include this header directly.
\r
6 // Copyright (c) 2001 Peter Dimov and Multi Media Ltd.
\r
8 // Distributed under the Boost Software License, Version 1.0. (See
\r
9 // accompanying file LICENSE_1_0.txt or copy at
\r
10 // http://www.boost.org/LICENSE_1_0.txt)
\r
12 // See http://www.boost.org/libs/bind/bind.html for documentation.
\r
16 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (), _bi::list0>
\r
17 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) ())
\r
19 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) ();
\r
20 typedef _bi::list0 list_type;
\r
21 return _bi::bind_t<R, F, list_type> (f, list_type());
\r
24 template<class R, class B1, class A1>
\r
25 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1), typename _bi::list_av_1<A1>::type>
\r
26 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1), A1 a1)
\r
28 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1);
\r
29 typedef typename _bi::list_av_1<A1>::type list_type;
\r
30 return _bi::bind_t<R, F, list_type> (f, list_type(a1));
\r
33 template<class R, class B1, class B2, class A1, class A2>
\r
34 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2), typename _bi::list_av_2<A1, A2>::type>
\r
35 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2), A1 a1, A2 a2)
\r
37 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2);
\r
38 typedef typename _bi::list_av_2<A1, A2>::type list_type;
\r
39 return _bi::bind_t<R, F, list_type> (f, list_type(a1, a2));
\r
43 class B1, class B2, class B3,
\r
44 class A1, class A2, class A3>
\r
45 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3), typename _bi::list_av_3<A1, A2, A3>::type>
\r
46 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3), A1 a1, A2 a2, A3 a3)
\r
48 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2, B3);
\r
49 typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
\r
50 return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3));
\r
54 class B1, class B2, class B3, class B4,
\r
55 class A1, class A2, class A3, class A4>
\r
56 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3, B4), typename _bi::list_av_4<A1, A2, A3, A4>::type>
\r
57 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3, B4), A1 a1, A2 a2, A3 a3, A4 a4)
\r
59 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2, B3, B4);
\r
60 typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
\r
61 return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4));
\r
65 class B1, class B2, class B3, class B4, class B5,
\r
66 class A1, class A2, class A3, class A4, class A5>
\r
67 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3, B4, B5), typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
\r
68 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3, B4, B5), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
\r
70 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2, B3, B4, B5);
\r
71 typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
\r
72 return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5));
\r
76 class B1, class B2, class B3, class B4, class B5, class B6,
\r
77 class A1, class A2, class A3, class A4, class A5, class A6>
\r
78 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3, B4, B5, B6), typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
\r
79 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3, B4, B5, B6), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
\r
81 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2, B3, B4, B5, B6);
\r
82 typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
\r
83 return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6));
\r
87 class B1, class B2, class B3, class B4, class B5, class B6, class B7,
\r
88 class A1, class A2, class A3, class A4, class A5, class A6, class A7>
\r
89 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3, B4, B5, B6, B7), typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
\r
90 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3, B4, B5, B6, B7), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
\r
92 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2, B3, B4, B5, B6, B7);
\r
93 typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
\r
94 return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7));
\r
98 class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8,
\r
99 class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
\r
100 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3, B4, B5, B6, B7, B8), typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
\r
101 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3, B4, B5, B6, B7, B8), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
\r
103 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2, B3, B4, B5, B6, B7, B8);
\r
104 typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
\r
105 return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8));
\r
109 class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8, class B9,
\r
110 class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
\r
111 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3, B4, B5, B6, B7, B8, B9), typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
\r
112 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3, B4, B5, B6, B7, B8, B9), A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
\r
114 typedef BOOST_BIND_ST R (BOOST_BIND_CC *F) (B1, B2, B3, B4, B5, B6, B7, B8, B9);
\r
115 typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
\r
116 return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
\r