bind_mf_cc.hpp 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. //
  2. // bind/bind_mf_cc.hpp - support for different calling conventions
  3. //
  4. // Do not include this header directly.
  5. //
  6. // Copyright (c) 2001 Peter Dimov and Multi Media Ltd.
  7. //
  8. // Distributed under the Boost Software License, Version 1.0. (See
  9. // accompanying file LICENSE_1_0.txt or copy at
  10. // http://www.boost.org/LICENSE_1_0.txt)
  11. //
  12. // See http://www.boost.org/libs/bind/bind.html for documentation.
  13. //
  14. // 0
  15. template<class R, class T,
  16. class A1>
  17. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf0)<R, T>, typename _bi::list_av_1<A1>::type>
  18. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) () BOOST_BIND_MF_NOEXCEPT, A1 a1)
  19. {
  20. typedef _mfi::BOOST_BIND_MF_NAME(mf0)<R, T> F;
  21. typedef typename _bi::list_av_1<A1>::type list_type;
  22. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1));
  23. }
  24. template<class R, class T,
  25. class A1>
  26. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf0)<R, T>, typename _bi::list_av_1<A1>::type>
  27. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) () const BOOST_BIND_MF_NOEXCEPT, A1 a1)
  28. {
  29. typedef _mfi::BOOST_BIND_MF_NAME(cmf0)<R, T> F;
  30. typedef typename _bi::list_av_1<A1>::type list_type;
  31. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1));
  32. }
  33. template<class Rt2, class R, class T,
  34. class A1>
  35. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  36. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf0)<R, T>, typename _bi::list_av_1<A1>::type>
  37. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) () BOOST_BIND_MF_NOEXCEPT, A1 a1)
  38. {
  39. typedef _mfi::BOOST_BIND_MF_NAME(mf0)<R, T> F;
  40. typedef typename _bi::list_av_1<A1>::type list_type;
  41. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1));
  42. }
  43. template<class Rt2, class R, class T,
  44. class A1>
  45. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  46. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf0)<R, T>, typename _bi::list_av_1<A1>::type>
  47. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) () const BOOST_BIND_MF_NOEXCEPT, A1 a1)
  48. {
  49. typedef _mfi::BOOST_BIND_MF_NAME(cmf0)<R, T> F;
  50. typedef typename _bi::list_av_1<A1>::type list_type;
  51. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1));
  52. }
  53. // 1
  54. template<class R, class T,
  55. class B1,
  56. class A1, class A2>
  57. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type>
  58. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2)
  59. {
  60. typedef _mfi::BOOST_BIND_MF_NAME(mf1)<R, T, B1> F;
  61. typedef typename _bi::list_av_2<A1, A2>::type list_type;
  62. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2));
  63. }
  64. template<class R, class T,
  65. class B1,
  66. class A1, class A2>
  67. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type>
  68. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2)
  69. {
  70. typedef _mfi::BOOST_BIND_MF_NAME(cmf1)<R, T, B1> F;
  71. typedef typename _bi::list_av_2<A1, A2>::type list_type;
  72. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2));
  73. }
  74. template<class Rt2, class R, class T,
  75. class B1,
  76. class A1, class A2>
  77. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  78. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type>
  79. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2)
  80. {
  81. typedef _mfi::BOOST_BIND_MF_NAME(mf1)<R, T, B1> F;
  82. typedef typename _bi::list_av_2<A1, A2>::type list_type;
  83. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2));
  84. }
  85. template<class Rt2, class R, class T,
  86. class B1,
  87. class A1, class A2>
  88. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  89. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type>
  90. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2)
  91. {
  92. typedef _mfi::BOOST_BIND_MF_NAME(cmf1)<R, T, B1> F;
  93. typedef typename _bi::list_av_2<A1, A2>::type list_type;
  94. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2));
  95. }
  96. // 2
  97. template<class R, class T,
  98. class B1, class B2,
  99. class A1, class A2, class A3>
  100. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2>, typename _bi::list_av_3<A1, A2, A3>::type>
  101. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3)
  102. {
  103. typedef _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2> F;
  104. typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
  105. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3));
  106. }
  107. template<class R, class T,
  108. class B1, class B2,
  109. class A1, class A2, class A3>
  110. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf2)<R, T, B1, B2>, typename _bi::list_av_3<A1, A2, A3>::type>
  111. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3)
  112. {
  113. typedef _mfi::BOOST_BIND_MF_NAME(cmf2)<R, T, B1, B2> F;
  114. typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
  115. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3));
  116. }
  117. template<class Rt2, class R, class T,
  118. class B1, class B2,
  119. class A1, class A2, class A3>
  120. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  121. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2>, typename _bi::list_av_3<A1, A2, A3>::type>
  122. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3)
  123. {
  124. typedef _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2> F;
  125. typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
  126. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3));
  127. }
  128. template<class Rt2, class R, class T,
  129. class B1, class B2,
  130. class A1, class A2, class A3>
  131. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  132. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf2)<R, T, B1, B2>, typename _bi::list_av_3<A1, A2, A3>::type>
  133. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3)
  134. {
  135. typedef _mfi::BOOST_BIND_MF_NAME(cmf2)<R, T, B1, B2> F;
  136. typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
  137. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3));
  138. }
  139. // 3
  140. template<class R, class T,
  141. class B1, class B2, class B3,
  142. class A1, class A2, class A3, class A4>
  143. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf3)<R, T, B1, B2, B3>, typename _bi::list_av_4<A1, A2, A3, A4>::type>
  144. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4)
  145. {
  146. typedef _mfi::BOOST_BIND_MF_NAME(mf3)<R, T, B1, B2, B3> F;
  147. typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
  148. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4));
  149. }
  150. template<class R, class T,
  151. class B1, class B2, class B3,
  152. class A1, class A2, class A3, class A4>
  153. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf3)<R, T, B1, B2, B3>, typename _bi::list_av_4<A1, A2, A3, A4>::type>
  154. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4)
  155. {
  156. typedef _mfi::BOOST_BIND_MF_NAME(cmf3)<R, T, B1, B2, B3> F;
  157. typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
  158. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4));
  159. }
  160. template<class Rt2, class R, class T,
  161. class B1, class B2, class B3,
  162. class A1, class A2, class A3, class A4>
  163. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  164. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf3)<R, T, B1, B2, B3>, typename _bi::list_av_4<A1, A2, A3, A4>::type>
  165. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4)
  166. {
  167. typedef _mfi::BOOST_BIND_MF_NAME(mf3)<R, T, B1, B2, B3> F;
  168. typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
  169. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4));
  170. }
  171. template<class Rt2, class R, class T,
  172. class B1, class B2, class B3,
  173. class A1, class A2, class A3, class A4>
  174. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  175. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf3)<R, T, B1, B2, B3>, typename _bi::list_av_4<A1, A2, A3, A4>::type>
  176. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4)
  177. {
  178. typedef _mfi::BOOST_BIND_MF_NAME(cmf3)<R, T, B1, B2, B3> F;
  179. typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
  180. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4));
  181. }
  182. // 4
  183. template<class R, class T,
  184. class B1, class B2, class B3, class B4,
  185. class A1, class A2, class A3, class A4, class A5>
  186. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf4)<R, T, B1, B2, B3, B4>, typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
  187. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
  188. {
  189. typedef _mfi::BOOST_BIND_MF_NAME(mf4)<R, T, B1, B2, B3, B4> F;
  190. typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
  191. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5));
  192. }
  193. template<class R, class T,
  194. class B1, class B2, class B3, class B4,
  195. class A1, class A2, class A3, class A4, class A5>
  196. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf4)<R, T, B1, B2, B3, B4>, typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
  197. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
  198. {
  199. typedef _mfi::BOOST_BIND_MF_NAME(cmf4)<R, T, B1, B2, B3, B4> F;
  200. typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
  201. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5));
  202. }
  203. template<class Rt2, class R, class T,
  204. class B1, class B2, class B3, class B4,
  205. class A1, class A2, class A3, class A4, class A5>
  206. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  207. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf4)<R, T, B1, B2, B3, B4>, typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
  208. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
  209. {
  210. typedef _mfi::BOOST_BIND_MF_NAME(mf4)<R, T, B1, B2, B3, B4> F;
  211. typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
  212. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5));
  213. }
  214. template<class Rt2, class R, class T,
  215. class B1, class B2, class B3, class B4,
  216. class A1, class A2, class A3, class A4, class A5>
  217. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  218. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf4)<R, T, B1, B2, B3, B4>, typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
  219. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
  220. {
  221. typedef _mfi::BOOST_BIND_MF_NAME(cmf4)<R, T, B1, B2, B3, B4> F;
  222. typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
  223. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5));
  224. }
  225. // 5
  226. template<class R, class T,
  227. class B1, class B2, class B3, class B4, class B5,
  228. class A1, class A2, class A3, class A4, class A5, class A6>
  229. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf5)<R, T, B1, B2, B3, B4, B5>, typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
  230. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
  231. {
  232. typedef _mfi::BOOST_BIND_MF_NAME(mf5)<R, T, B1, B2, B3, B4, B5> F;
  233. typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
  234. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6));
  235. }
  236. template<class R, class T,
  237. class B1, class B2, class B3, class B4, class B5,
  238. class A1, class A2, class A3, class A4, class A5, class A6>
  239. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf5)<R, T, B1, B2, B3, B4, B5>, typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
  240. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
  241. {
  242. typedef _mfi::BOOST_BIND_MF_NAME(cmf5)<R, T, B1, B2, B3, B4, B5> F;
  243. typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
  244. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6));
  245. }
  246. template<class Rt2, class R, class T,
  247. class B1, class B2, class B3, class B4, class B5,
  248. class A1, class A2, class A3, class A4, class A5, class A6>
  249. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  250. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf5)<R, T, B1, B2, B3, B4, B5>, typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
  251. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
  252. {
  253. typedef _mfi::BOOST_BIND_MF_NAME(mf5)<R, T, B1, B2, B3, B4, B5> F;
  254. typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
  255. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6));
  256. }
  257. template<class Rt2, class R, class T,
  258. class B1, class B2, class B3, class B4, class B5,
  259. class A1, class A2, class A3, class A4, class A5, class A6>
  260. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  261. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf5)<R, T, B1, B2, B3, B4, B5>, typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
  262. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
  263. {
  264. typedef _mfi::BOOST_BIND_MF_NAME(cmf5)<R, T, B1, B2, B3, B4, B5> F;
  265. typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
  266. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6));
  267. }
  268. // 6
  269. template<class R, class T,
  270. class B1, class B2, class B3, class B4, class B5, class B6,
  271. class A1, class A2, class A3, class A4, class A5, class A6, class A7>
  272. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf6)<R, T, B1, B2, B3, B4, B5, B6>, typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
  273. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
  274. {
  275. typedef _mfi::BOOST_BIND_MF_NAME(mf6)<R, T, B1, B2, B3, B4, B5, B6> F;
  276. typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
  277. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7));
  278. }
  279. template<class R, class T,
  280. class B1, class B2, class B3, class B4, class B5, class B6,
  281. class A1, class A2, class A3, class A4, class A5, class A6, class A7>
  282. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf6)<R, T, B1, B2, B3, B4, B5, B6>, typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
  283. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
  284. {
  285. typedef _mfi::BOOST_BIND_MF_NAME(cmf6)<R, T, B1, B2, B3, B4, B5, B6> F;
  286. typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
  287. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7));
  288. }
  289. template<class Rt2, class R, class T,
  290. class B1, class B2, class B3, class B4, class B5, class B6,
  291. class A1, class A2, class A3, class A4, class A5, class A6, class A7>
  292. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  293. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf6)<R, T, B1, B2, B3, B4, B5, B6>, typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
  294. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
  295. {
  296. typedef _mfi::BOOST_BIND_MF_NAME(mf6)<R, T, B1, B2, B3, B4, B5, B6> F;
  297. typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
  298. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7));
  299. }
  300. template<class Rt2, class R, class T,
  301. class B1, class B2, class B3, class B4, class B5, class B6,
  302. class A1, class A2, class A3, class A4, class A5, class A6, class A7>
  303. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  304. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf6)<R, T, B1, B2, B3, B4, B5, B6>, typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
  305. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
  306. {
  307. typedef _mfi::BOOST_BIND_MF_NAME(cmf6)<R, T, B1, B2, B3, B4, B5, B6> F;
  308. typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
  309. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7));
  310. }
  311. // 7
  312. template<class R, class T,
  313. class B1, class B2, class B3, class B4, class B5, class B6, class B7,
  314. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
  315. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf7)<R, T, B1, B2, B3, B4, B5, B6, B7>, typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
  316. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
  317. {
  318. typedef _mfi::BOOST_BIND_MF_NAME(mf7)<R, T, B1, B2, B3, B4, B5, B6, B7> F;
  319. typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
  320. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8));
  321. }
  322. template<class R, class T,
  323. class B1, class B2, class B3, class B4, class B5, class B6, class B7,
  324. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
  325. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf7)<R, T, B1, B2, B3, B4, B5, B6, B7>, typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
  326. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
  327. {
  328. typedef _mfi::BOOST_BIND_MF_NAME(cmf7)<R, T, B1, B2, B3, B4, B5, B6, B7> F;
  329. typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
  330. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8));
  331. }
  332. template<class Rt2, class R, class T,
  333. class B1, class B2, class B3, class B4, class B5, class B6, class B7,
  334. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
  335. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  336. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf7)<R, T, B1, B2, B3, B4, B5, B6, B7>, typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
  337. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
  338. {
  339. typedef _mfi::BOOST_BIND_MF_NAME(mf7)<R, T, B1, B2, B3, B4, B5, B6, B7> F;
  340. typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
  341. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8));
  342. }
  343. template<class Rt2, class R, class T,
  344. class B1, class B2, class B3, class B4, class B5, class B6, class B7,
  345. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
  346. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  347. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf7)<R, T, B1, B2, B3, B4, B5, B6, B7>, typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
  348. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
  349. {
  350. typedef _mfi::BOOST_BIND_MF_NAME(cmf7)<R, T, B1, B2, B3, B4, B5, B6, B7> F;
  351. typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
  352. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8));
  353. }
  354. // 8
  355. template<class R, class T,
  356. class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8,
  357. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
  358. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8>, typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
  359. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7, B8) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
  360. {
  361. typedef _mfi::BOOST_BIND_MF_NAME(mf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8> F;
  362. typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
  363. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
  364. }
  365. template<class R, class T,
  366. class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8,
  367. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
  368. _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8>, typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
  369. BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7, B8) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
  370. {
  371. typedef _mfi::BOOST_BIND_MF_NAME(cmf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8> F;
  372. typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
  373. return _bi::bind_t<R, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
  374. }
  375. template<class Rt2, class R, class T,
  376. class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8,
  377. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
  378. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  379. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8>, typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
  380. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7, B8) BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
  381. {
  382. typedef _mfi::BOOST_BIND_MF_NAME(mf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8> F;
  383. typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
  384. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
  385. }
  386. template<class Rt2, class R, class T,
  387. class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8,
  388. class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
  389. typename boost::enable_if_c<!boost::core::is_same<Rt2, R>::value,
  390. _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8>, typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
  391. >::type BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1, B2, B3, B4, B5, B6, B7, B8) const BOOST_BIND_MF_NOEXCEPT, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
  392. {
  393. typedef _mfi::BOOST_BIND_MF_NAME(cmf8)<R, T, B1, B2, B3, B4, B5, B6, B7, B8> F;
  394. typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
  395. return _bi::bind_t<Rt2, F, list_type>(F(f), list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
  396. }