fwd_macros.hpp 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2014-2014. Distributed under the Boost
  4. // Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/container for documentation.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef BOOST_MOVE_DETAIL_FWD_MACROS_HPP
  11. #define BOOST_MOVE_DETAIL_FWD_MACROS_HPP
  12. #ifndef BOOST_CONFIG_HPP
  13. # include <boost/config.hpp>
  14. #endif
  15. #
  16. #if defined(BOOST_HAS_PRAGMA_ONCE)
  17. # pragma once
  18. #endif
  19. #include <boost/move/detail/workaround.hpp>
  20. namespace boost {
  21. namespace move_detail {
  22. template <typename T> struct unvoid { typedef T type; };
  23. template <> struct unvoid<void> { struct type { }; };
  24. template <> struct unvoid<const void> { struct type { }; };
  25. } //namespace move_detail {
  26. } //namespace boost {
  27. #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
  28. #if defined(BOOST_MOVE_MSVC_10_MEMBER_RVALUE_REF_BUG)
  29. namespace boost {
  30. namespace move_detail {
  31. template<class T>
  32. struct mref;
  33. template<class T>
  34. struct mref<T &>
  35. {
  36. explicit mref(T &t) : t_(t){}
  37. T &t_;
  38. T & get() { return t_; }
  39. };
  40. template<class T>
  41. struct mref
  42. {
  43. explicit mref(T &&t) : t_(t) {}
  44. T &t_;
  45. T &&get() { return ::boost::move(t_); }
  46. };
  47. } //namespace move_detail {
  48. } //namespace boost {
  49. #endif //BOOST_MOVE_MSVC_10_MEMBER_RVALUE_REF_BUG
  50. #endif //!defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
  51. //BOOST_MOVE_REPEATN(MACRO)
  52. #define BOOST_MOVE_REPEAT(x, MACRO) BOOST_MOVE_REPEAT_I(x,MACRO)
  53. #define BOOST_MOVE_REPEAT_I(x, MACRO) BOOST_MOVE_REPEAT##x(MACRO)
  54. #define BOOST_MOVE_REPEAT0(MACRO)
  55. #define BOOST_MOVE_REPEAT1(MACRO) MACRO
  56. #define BOOST_MOVE_REPEAT2(MACRO) BOOST_MOVE_REPEAT1(MACRO), MACRO
  57. #define BOOST_MOVE_REPEAT3(MACRO) BOOST_MOVE_REPEAT2(MACRO), MACRO
  58. #define BOOST_MOVE_REPEAT4(MACRO) BOOST_MOVE_REPEAT3(MACRO), MACRO
  59. #define BOOST_MOVE_REPEAT5(MACRO) BOOST_MOVE_REPEAT4(MACRO), MACRO
  60. #define BOOST_MOVE_REPEAT6(MACRO) BOOST_MOVE_REPEAT5(MACRO), MACRO
  61. #define BOOST_MOVE_REPEAT7(MACRO) BOOST_MOVE_REPEAT6(MACRO), MACRO
  62. #define BOOST_MOVE_REPEAT8(MACRO) BOOST_MOVE_REPEAT7(MACRO), MACRO
  63. #define BOOST_MOVE_REPEAT9(MACRO) BOOST_MOVE_REPEAT8(MACRO), MACRO
  64. #define BOOST_MOVE_REPEAT10(MACRO) BOOST_MOVE_REPEAT9(MACRO), MACRO
  65. #define BOOST_MOVE_REPEAT11(MACRO) BOOST_MOVE_REPEAT10(MACRO), MACRO
  66. #define BOOST_MOVE_REPEAT12(MACRO) BOOST_MOVE_REPEAT11(MACRO), MACRO
  67. #define BOOST_MOVE_REPEAT13(MACRO) BOOST_MOVE_REPEAT12(MACRO), MACRO
  68. //BOOST_MOVE_FWDN
  69. #define BOOST_MOVE_FWD0
  70. #define BOOST_MOVE_FWD1 ::boost::forward<P0>(p0)
  71. #define BOOST_MOVE_FWD2 BOOST_MOVE_FWD1, ::boost::forward<P1>(p1)
  72. #define BOOST_MOVE_FWD3 BOOST_MOVE_FWD2, ::boost::forward<P2>(p2)
  73. #define BOOST_MOVE_FWD4 BOOST_MOVE_FWD3, ::boost::forward<P3>(p3)
  74. #define BOOST_MOVE_FWD5 BOOST_MOVE_FWD4, ::boost::forward<P4>(p4)
  75. #define BOOST_MOVE_FWD6 BOOST_MOVE_FWD5, ::boost::forward<P5>(p5)
  76. #define BOOST_MOVE_FWD7 BOOST_MOVE_FWD6, ::boost::forward<P6>(p6)
  77. #define BOOST_MOVE_FWD8 BOOST_MOVE_FWD7, ::boost::forward<P7>(p7)
  78. #define BOOST_MOVE_FWD9 BOOST_MOVE_FWD8, ::boost::forward<P8>(p8)
  79. //BOOST_MOVE_FWDQN
  80. #define BOOST_MOVE_FWDQ0
  81. #define BOOST_MOVE_FWDQ1 ::boost::forward<Q0>(q0)
  82. #define BOOST_MOVE_FWDQ2 BOOST_MOVE_FWDQ1, ::boost::forward<Q1>(q1)
  83. #define BOOST_MOVE_FWDQ3 BOOST_MOVE_FWDQ2, ::boost::forward<Q2>(q2)
  84. #define BOOST_MOVE_FWDQ4 BOOST_MOVE_FWDQ3, ::boost::forward<Q3>(q3)
  85. #define BOOST_MOVE_FWDQ5 BOOST_MOVE_FWDQ4, ::boost::forward<Q4>(q4)
  86. #define BOOST_MOVE_FWDQ6 BOOST_MOVE_FWDQ5, ::boost::forward<Q5>(q5)
  87. #define BOOST_MOVE_FWDQ7 BOOST_MOVE_FWDQ6, ::boost::forward<Q6>(q6)
  88. #define BOOST_MOVE_FWDQ8 BOOST_MOVE_FWDQ7, ::boost::forward<Q7>(q7)
  89. #define BOOST_MOVE_FWDQ9 BOOST_MOVE_FWDQ8, ::boost::forward<Q8>(q8)
  90. //BOOST_MOVE_TMPL_GETN
  91. #define BOOST_MOVE_TMPL_GET0
  92. #define BOOST_MOVE_TMPL_GET1 p.template get<0>()
  93. #define BOOST_MOVE_TMPL_GET2 BOOST_MOVE_TMPL_GET1, p.template get<1>()
  94. #define BOOST_MOVE_TMPL_GET3 BOOST_MOVE_TMPL_GET2, p.template get<2>()
  95. #define BOOST_MOVE_TMPL_GET4 BOOST_MOVE_TMPL_GET3, p.template get<3>()
  96. #define BOOST_MOVE_TMPL_GET5 BOOST_MOVE_TMPL_GET4, p.template get<4>()
  97. #define BOOST_MOVE_TMPL_GET6 BOOST_MOVE_TMPL_GET5, p.template get<5>()
  98. #define BOOST_MOVE_TMPL_GET7 BOOST_MOVE_TMPL_GET6, p.template get<6>()
  99. #define BOOST_MOVE_TMPL_GET8 BOOST_MOVE_TMPL_GET7, p.template get<7>()
  100. #define BOOST_MOVE_TMPL_GET9 BOOST_MOVE_TMPL_GET8, p.template get<8>()
  101. //BOOST_MOVE_TMPL_GETQN
  102. #define BOOST_MOVE_TMPL_GETQ0
  103. #define BOOST_MOVE_TMPL_GETQ1 q.template get<0>()
  104. #define BOOST_MOVE_TMPL_GETQ2 BOOST_MOVE_TMPL_GETQ1, q.template get<1>()
  105. #define BOOST_MOVE_TMPL_GETQ3 BOOST_MOVE_TMPL_GETQ2, q.template get<2>()
  106. #define BOOST_MOVE_TMPL_GETQ4 BOOST_MOVE_TMPL_GETQ3, q.template get<3>()
  107. #define BOOST_MOVE_TMPL_GETQ5 BOOST_MOVE_TMPL_GETQ4, q.template get<4>()
  108. #define BOOST_MOVE_TMPL_GETQ6 BOOST_MOVE_TMPL_GETQ5, q.template get<5>()
  109. #define BOOST_MOVE_TMPL_GETQ7 BOOST_MOVE_TMPL_GETQ6, q.template get<6>()
  110. #define BOOST_MOVE_TMPL_GETQ8 BOOST_MOVE_TMPL_GETQ7, q.template get<7>()
  111. #define BOOST_MOVE_TMPL_GETQ9 BOOST_MOVE_TMPL_GETQ8, q.template get<8>()
  112. //BOOST_MOVE_GET_IDXN
  113. #define BOOST_MOVE_GET_IDX0
  114. #define BOOST_MOVE_GET_IDX1 get<0>(p)
  115. #define BOOST_MOVE_GET_IDX2 BOOST_MOVE_GET_IDX1, get<1>(p)
  116. #define BOOST_MOVE_GET_IDX3 BOOST_MOVE_GET_IDX2, get<2>(p)
  117. #define BOOST_MOVE_GET_IDX4 BOOST_MOVE_GET_IDX3, get<3>(p)
  118. #define BOOST_MOVE_GET_IDX5 BOOST_MOVE_GET_IDX4, get<4>(p)
  119. #define BOOST_MOVE_GET_IDX6 BOOST_MOVE_GET_IDX5, get<5>(p)
  120. #define BOOST_MOVE_GET_IDX7 BOOST_MOVE_GET_IDX6, get<6>(p)
  121. #define BOOST_MOVE_GET_IDX8 BOOST_MOVE_GET_IDX7, get<7>(p)
  122. #define BOOST_MOVE_GET_IDX9 BOOST_MOVE_GET_IDX8, get<8>(p)
  123. //BOOST_MOVE_GET_IDXQN
  124. #define BOOST_MOVE_GET_IDXQ0
  125. #define BOOST_MOVE_GET_IDXQ1 get<0>(q)
  126. #define BOOST_MOVE_GET_IDXQ2 BOOST_MOVE_GET_IDXQ1, get<1>(q)
  127. #define BOOST_MOVE_GET_IDXQ3 BOOST_MOVE_GET_IDXQ2, get<2>(q)
  128. #define BOOST_MOVE_GET_IDXQ4 BOOST_MOVE_GET_IDXQ3, get<3>(q)
  129. #define BOOST_MOVE_GET_IDXQ5 BOOST_MOVE_GET_IDXQ4, get<4>(q)
  130. #define BOOST_MOVE_GET_IDXQ6 BOOST_MOVE_GET_IDXQ5, get<5>(q)
  131. #define BOOST_MOVE_GET_IDXQ7 BOOST_MOVE_GET_IDXQ6, get<6>(q)
  132. #define BOOST_MOVE_GET_IDXQ8 BOOST_MOVE_GET_IDXQ7, get<7>(q)
  133. #define BOOST_MOVE_GET_IDXQ9 BOOST_MOVE_GET_IDXQ8, get<8>(q)
  134. //BOOST_MOVE_ARGN
  135. #define BOOST_MOVE_ARG0
  136. #define BOOST_MOVE_ARG1 p0
  137. #define BOOST_MOVE_ARG2 BOOST_MOVE_ARG1, p1
  138. #define BOOST_MOVE_ARG3 BOOST_MOVE_ARG2, p2
  139. #define BOOST_MOVE_ARG4 BOOST_MOVE_ARG3, p3
  140. #define BOOST_MOVE_ARG5 BOOST_MOVE_ARG4, p4
  141. #define BOOST_MOVE_ARG6 BOOST_MOVE_ARG5, p5
  142. #define BOOST_MOVE_ARG7 BOOST_MOVE_ARG6, p6
  143. #define BOOST_MOVE_ARG8 BOOST_MOVE_ARG7, p7
  144. #define BOOST_MOVE_ARG9 BOOST_MOVE_ARG8, p8
  145. //BOOST_MOVE_ARGQN
  146. #define BOOST_MOVE_ARGQ0
  147. #define BOOST_MOVE_ARGQ1 q0
  148. #define BOOST_MOVE_ARGQ2 BOOST_MOVE_ARGQ1, q1
  149. #define BOOST_MOVE_ARGQ3 BOOST_MOVE_ARGQ2, q2
  150. #define BOOST_MOVE_ARGQ4 BOOST_MOVE_ARGQ3, q3
  151. #define BOOST_MOVE_ARGQ5 BOOST_MOVE_ARGQ4, q4
  152. #define BOOST_MOVE_ARGQ6 BOOST_MOVE_ARGQ5, q5
  153. #define BOOST_MOVE_ARGQ7 BOOST_MOVE_ARGQ6, q6
  154. #define BOOST_MOVE_ARGQ8 BOOST_MOVE_ARGQ7, q7
  155. #define BOOST_MOVE_ARGQ9 BOOST_MOVE_ARGQ8, q8
  156. //BOOST_MOVE_DECLVALN
  157. #define BOOST_MOVE_DECLVAL0
  158. #define BOOST_MOVE_DECLVAL1 ::boost::move_detail::declval<P0>()
  159. #define BOOST_MOVE_DECLVAL2 BOOST_MOVE_DECLVAL1, ::boost::move_detail::declval<P1>()
  160. #define BOOST_MOVE_DECLVAL3 BOOST_MOVE_DECLVAL2, ::boost::move_detail::declval<P2>()
  161. #define BOOST_MOVE_DECLVAL4 BOOST_MOVE_DECLVAL3, ::boost::move_detail::declval<P3>()
  162. #define BOOST_MOVE_DECLVAL5 BOOST_MOVE_DECLVAL4, ::boost::move_detail::declval<P4>()
  163. #define BOOST_MOVE_DECLVAL6 BOOST_MOVE_DECLVAL5, ::boost::move_detail::declval<P5>()
  164. #define BOOST_MOVE_DECLVAL7 BOOST_MOVE_DECLVAL6, ::boost::move_detail::declval<P6>()
  165. #define BOOST_MOVE_DECLVAL8 BOOST_MOVE_DECLVAL7, ::boost::move_detail::declval<P7>()
  166. #define BOOST_MOVE_DECLVAL9 BOOST_MOVE_DECLVAL8, ::boost::move_detail::declval<P8>()
  167. //BOOST_MOVE_DECLVALQN
  168. #define BOOST_MOVE_DECLVALQ0
  169. #define BOOST_MOVE_DECLVALQ1 ::boost::move_detail::declval<Q0>()
  170. #define BOOST_MOVE_DECLVALQ2 BOOST_MOVE_DECLVALQ1, ::boost::move_detail::declval<Q1>()
  171. #define BOOST_MOVE_DECLVALQ3 BOOST_MOVE_DECLVALQ2, ::boost::move_detail::declval<Q2>()
  172. #define BOOST_MOVE_DECLVALQ4 BOOST_MOVE_DECLVALQ3, ::boost::move_detail::declval<Q3>()
  173. #define BOOST_MOVE_DECLVALQ5 BOOST_MOVE_DECLVALQ4, ::boost::move_detail::declval<Q4>()
  174. #define BOOST_MOVE_DECLVALQ6 BOOST_MOVE_DECLVALQ5, ::boost::move_detail::declval<Q5>()
  175. #define BOOST_MOVE_DECLVALQ7 BOOST_MOVE_DECLVALQ6, ::boost::move_detail::declval<Q6>()
  176. #define BOOST_MOVE_DECLVALQ8 BOOST_MOVE_DECLVALQ7, ::boost::move_detail::declval<Q7>()
  177. #define BOOST_MOVE_DECLVALQ9 BOOST_MOVE_DECLVALQ8, ::boost::move_detail::declval<Q8>()
  178. #ifdef BOOST_MOVE_MSVC_10_MEMBER_RVALUE_REF_BUG
  179. #define BOOST_MOVE_MREF(T) ::boost::move_detail::mref<T>
  180. #define BOOST_MOVE_MFWD(N) ::boost::forward<P##N>(this->m_p##N.get())
  181. #define BOOST_MOVE_MFWDQ(N) ::boost::forward<Q##N>(this->m_q##N.get())
  182. #else
  183. #define BOOST_MOVE_MREF(T) BOOST_FWD_REF(T)
  184. #define BOOST_MOVE_MFWD(N) ::boost::forward<P##N>(this->m_p##N)
  185. #define BOOST_MOVE_MFWDQ(N) ::boost::forward<Q##N>(this->m_q##N)
  186. #endif
  187. #define BOOST_MOVE_MITFWD(N) *this->m_p##N
  188. #define BOOST_MOVE_MINC(N) ++this->m_p##N
  189. #define BOOST_MOVE_MITFWDQ(N) *this->m_q##N
  190. #define BOOST_MOVE_MINCQ(N) ++this->m_q##N
  191. //BOOST_MOVE_MFWDN
  192. #define BOOST_MOVE_MFWD0
  193. #define BOOST_MOVE_MFWD1 BOOST_MOVE_MFWD(0)
  194. #define BOOST_MOVE_MFWD2 BOOST_MOVE_MFWD1, BOOST_MOVE_MFWD(1)
  195. #define BOOST_MOVE_MFWD3 BOOST_MOVE_MFWD2, BOOST_MOVE_MFWD(2)
  196. #define BOOST_MOVE_MFWD4 BOOST_MOVE_MFWD3, BOOST_MOVE_MFWD(3)
  197. #define BOOST_MOVE_MFWD5 BOOST_MOVE_MFWD4, BOOST_MOVE_MFWD(4)
  198. #define BOOST_MOVE_MFWD6 BOOST_MOVE_MFWD5, BOOST_MOVE_MFWD(5)
  199. #define BOOST_MOVE_MFWD7 BOOST_MOVE_MFWD6, BOOST_MOVE_MFWD(6)
  200. #define BOOST_MOVE_MFWD8 BOOST_MOVE_MFWD7, BOOST_MOVE_MFWD(7)
  201. #define BOOST_MOVE_MFWD9 BOOST_MOVE_MFWD8, BOOST_MOVE_MFWD(8)
  202. //BOOST_MOVE_MFWDN
  203. #define BOOST_MOVE_MFWDQ0
  204. #define BOOST_MOVE_MFWDQ1 BOOST_MOVE_MFWDQ(0)
  205. #define BOOST_MOVE_MFWDQ2 BOOST_MOVE_MFWDQ1, BOOST_MOVE_MFWDQ(1)
  206. #define BOOST_MOVE_MFWDQ3 BOOST_MOVE_MFWDQ2, BOOST_MOVE_MFWDQ(2)
  207. #define BOOST_MOVE_MFWDQ4 BOOST_MOVE_MFWDQ3, BOOST_MOVE_MFWDQ(3)
  208. #define BOOST_MOVE_MFWDQ5 BOOST_MOVE_MFWDQ4, BOOST_MOVE_MFWDQ(4)
  209. #define BOOST_MOVE_MFWDQ6 BOOST_MOVE_MFWDQ5, BOOST_MOVE_MFWDQ(5)
  210. #define BOOST_MOVE_MFWDQ7 BOOST_MOVE_MFWDQ6, BOOST_MOVE_MFWDQ(6)
  211. #define BOOST_MOVE_MFWDQ8 BOOST_MOVE_MFWDQ7, BOOST_MOVE_MFWDQ(7)
  212. #define BOOST_MOVE_MFWDQ9 BOOST_MOVE_MFWDQ8, BOOST_MOVE_MFWDQ(8)
  213. //BOOST_MOVE_MINCN
  214. #define BOOST_MOVE_MINC0
  215. #define BOOST_MOVE_MINC1 BOOST_MOVE_MINC(0)
  216. #define BOOST_MOVE_MINC2 BOOST_MOVE_MINC1, BOOST_MOVE_MINC(1)
  217. #define BOOST_MOVE_MINC3 BOOST_MOVE_MINC2, BOOST_MOVE_MINC(2)
  218. #define BOOST_MOVE_MINC4 BOOST_MOVE_MINC3, BOOST_MOVE_MINC(3)
  219. #define BOOST_MOVE_MINC5 BOOST_MOVE_MINC4, BOOST_MOVE_MINC(4)
  220. #define BOOST_MOVE_MINC6 BOOST_MOVE_MINC5, BOOST_MOVE_MINC(5)
  221. #define BOOST_MOVE_MINC7 BOOST_MOVE_MINC6, BOOST_MOVE_MINC(6)
  222. #define BOOST_MOVE_MINC8 BOOST_MOVE_MINC7, BOOST_MOVE_MINC(7)
  223. #define BOOST_MOVE_MINC9 BOOST_MOVE_MINC8, BOOST_MOVE_MINC(8)
  224. //BOOST_MOVE_MINCQN
  225. #define BOOST_MOVE_MINCQ0
  226. #define BOOST_MOVE_MINCQ1 BOOST_MOVE_MINCQ(0)
  227. #define BOOST_MOVE_MINCQ2 BOOST_MOVE_MINCQ1, BOOST_MOVE_MINCQ(1)
  228. #define BOOST_MOVE_MINCQ3 BOOST_MOVE_MINCQ2, BOOST_MOVE_MINCQ(2)
  229. #define BOOST_MOVE_MINCQ4 BOOST_MOVE_MINCQ3, BOOST_MOVE_MINCQ(3)
  230. #define BOOST_MOVE_MINCQ5 BOOST_MOVE_MINCQ4, BOOST_MOVE_MINCQ(4)
  231. #define BOOST_MOVE_MINCQ6 BOOST_MOVE_MINCQ5, BOOST_MOVE_MINCQ(5)
  232. #define BOOST_MOVE_MINCQ7 BOOST_MOVE_MINCQ6, BOOST_MOVE_MINCQ(6)
  233. #define BOOST_MOVE_MINCQ8 BOOST_MOVE_MINCQ7, BOOST_MOVE_MINCQ(7)
  234. #define BOOST_MOVE_MINCQ9 BOOST_MOVE_MINCQ8, BOOST_MOVE_MINCQ(8)
  235. //BOOST_MOVE_MITFWDN
  236. #define BOOST_MOVE_MITFWD0
  237. #define BOOST_MOVE_MITFWD1 BOOST_MOVE_MITFWD(0)
  238. #define BOOST_MOVE_MITFWD2 BOOST_MOVE_MITFWD1, BOOST_MOVE_MITFWD(1)
  239. #define BOOST_MOVE_MITFWD3 BOOST_MOVE_MITFWD2, BOOST_MOVE_MITFWD(2)
  240. #define BOOST_MOVE_MITFWD4 BOOST_MOVE_MITFWD3, BOOST_MOVE_MITFWD(3)
  241. #define BOOST_MOVE_MITFWD5 BOOST_MOVE_MITFWD4, BOOST_MOVE_MITFWD(4)
  242. #define BOOST_MOVE_MITFWD6 BOOST_MOVE_MITFWD5, BOOST_MOVE_MITFWD(5)
  243. #define BOOST_MOVE_MITFWD7 BOOST_MOVE_MITFWD6, BOOST_MOVE_MITFWD(6)
  244. #define BOOST_MOVE_MITFWD8 BOOST_MOVE_MITFWD7, BOOST_MOVE_MITFWD(7)
  245. #define BOOST_MOVE_MITFWD9 BOOST_MOVE_MITFWD8, BOOST_MOVE_MITFWD(8)
  246. //BOOST_MOVE_MITFWDQN
  247. #define BOOST_MOVE_MITFWDQ0
  248. #define BOOST_MOVE_MITFWDQ1 BOOST_MOVE_MITFWDQ(0)
  249. #define BOOST_MOVE_MITFWDQ2 BOOST_MOVE_MITFWDQ1, BOOST_MOVE_MITFWDQ(1)
  250. #define BOOST_MOVE_MITFWDQ3 BOOST_MOVE_MITFWDQ2, BOOST_MOVE_MITFWDQ(2)
  251. #define BOOST_MOVE_MITFWDQ4 BOOST_MOVE_MITFWDQ3, BOOST_MOVE_MITFWDQ(3)
  252. #define BOOST_MOVE_MITFWDQ5 BOOST_MOVE_MITFWDQ4, BOOST_MOVE_MITFWDQ(4)
  253. #define BOOST_MOVE_MITFWDQ6 BOOST_MOVE_MITFWDQ5, BOOST_MOVE_MITFWDQ(5)
  254. #define BOOST_MOVE_MITFWDQ7 BOOST_MOVE_MITFWDQ6, BOOST_MOVE_MITFWDQ(6)
  255. #define BOOST_MOVE_MITFWDQ8 BOOST_MOVE_MITFWDQ7, BOOST_MOVE_MITFWDQ(7)
  256. #define BOOST_MOVE_MITFWDQ9 BOOST_MOVE_MITFWDQ8, BOOST_MOVE_MITFWDQ(8)
  257. //BOOST_MOVE_FWD_INITN
  258. #define BOOST_MOVE_FWD_INIT0
  259. #define BOOST_MOVE_FWD_INIT1 m_p0(::boost::forward<P0>(p0))
  260. #define BOOST_MOVE_FWD_INIT2 BOOST_MOVE_FWD_INIT1, m_p1(::boost::forward<P1>(p1))
  261. #define BOOST_MOVE_FWD_INIT3 BOOST_MOVE_FWD_INIT2, m_p2(::boost::forward<P2>(p2))
  262. #define BOOST_MOVE_FWD_INIT4 BOOST_MOVE_FWD_INIT3, m_p3(::boost::forward<P3>(p3))
  263. #define BOOST_MOVE_FWD_INIT5 BOOST_MOVE_FWD_INIT4, m_p4(::boost::forward<P4>(p4))
  264. #define BOOST_MOVE_FWD_INIT6 BOOST_MOVE_FWD_INIT5, m_p5(::boost::forward<P5>(p5))
  265. #define BOOST_MOVE_FWD_INIT7 BOOST_MOVE_FWD_INIT6, m_p6(::boost::forward<P6>(p6))
  266. #define BOOST_MOVE_FWD_INIT8 BOOST_MOVE_FWD_INIT7, m_p7(::boost::forward<P7>(p7))
  267. #define BOOST_MOVE_FWD_INIT9 BOOST_MOVE_FWD_INIT8, m_p8(::boost::forward<P8>(p8))
  268. //BOOST_MOVE_FWD_INITQN
  269. #define BOOST_MOVE_FWD_INITQ0
  270. #define BOOST_MOVE_FWD_INITQ1 m_q0(::boost::forward<Q0>(q0))
  271. #define BOOST_MOVE_FWD_INITQ2 BOOST_MOVE_FWD_INITQ1, m_q1(::boost::forward<Q1>(q1))
  272. #define BOOST_MOVE_FWD_INITQ3 BOOST_MOVE_FWD_INITQ2, m_q2(::boost::forward<Q2>(q2))
  273. #define BOOST_MOVE_FWD_INITQ4 BOOST_MOVE_FWD_INITQ3, m_q3(::boost::forward<Q3>(q3))
  274. #define BOOST_MOVE_FWD_INITQ5 BOOST_MOVE_FWD_INITQ4, m_q4(::boost::forward<Q4>(q4))
  275. #define BOOST_MOVE_FWD_INITQ6 BOOST_MOVE_FWD_INITQ5, m_q5(::boost::forward<Q5>(q5))
  276. #define BOOST_MOVE_FWD_INITQ7 BOOST_MOVE_FWD_INITQ6, m_q6(::boost::forward<Q6>(q6))
  277. #define BOOST_MOVE_FWD_INITQ8 BOOST_MOVE_FWD_INITQ7, m_q7(::boost::forward<Q7>(q7))
  278. #define BOOST_MOVE_FWD_INITQ9 BOOST_MOVE_FWD_INITQ8, m_q8(::boost::forward<Q8>(q8))
  279. //BOOST_MOVE_VAL_INITN
  280. #define BOOST_MOVE_VAL_INIT0
  281. #define BOOST_MOVE_VAL_INIT1 m_p0(p0)
  282. #define BOOST_MOVE_VAL_INIT2 BOOST_MOVE_VAL_INIT1, m_p1(p1)
  283. #define BOOST_MOVE_VAL_INIT3 BOOST_MOVE_VAL_INIT2, m_p2(p2)
  284. #define BOOST_MOVE_VAL_INIT4 BOOST_MOVE_VAL_INIT3, m_p3(p3)
  285. #define BOOST_MOVE_VAL_INIT5 BOOST_MOVE_VAL_INIT4, m_p4(p4)
  286. #define BOOST_MOVE_VAL_INIT6 BOOST_MOVE_VAL_INIT5, m_p5(p5)
  287. #define BOOST_MOVE_VAL_INIT7 BOOST_MOVE_VAL_INIT6, m_p6(p6)
  288. #define BOOST_MOVE_VAL_INIT8 BOOST_MOVE_VAL_INIT7, m_p7(p7)
  289. #define BOOST_MOVE_VAL_INIT9 BOOST_MOVE_VAL_INIT8, m_p8(p8)
  290. //BOOST_MOVE_VAL_INITQN
  291. #define BOOST_MOVE_VAL_INITQ0
  292. #define BOOST_MOVE_VAL_INITQ1 m_q0(q0)
  293. #define BOOST_MOVE_VAL_INITQ2 BOOST_MOVE_VAL_INITQ1, m_q1(q1)
  294. #define BOOST_MOVE_VAL_INITQ3 BOOST_MOVE_VAL_INITQ2, m_q2(q2)
  295. #define BOOST_MOVE_VAL_INITQ4 BOOST_MOVE_VAL_INITQ3, m_q3(q3)
  296. #define BOOST_MOVE_VAL_INITQ5 BOOST_MOVE_VAL_INITQ4, m_q4(q4)
  297. #define BOOST_MOVE_VAL_INITQ6 BOOST_MOVE_VAL_INITQ5, m_q5(q5)
  298. #define BOOST_MOVE_VAL_INITQ7 BOOST_MOVE_VAL_INITQ6, m_q6(q6)
  299. #define BOOST_MOVE_VAL_INITQ8 BOOST_MOVE_VAL_INITQ7, m_q7(q7)
  300. #define BOOST_MOVE_VAL_INITQ9 BOOST_MOVE_VAL_INITQ8, m_q8(q8)
  301. //BOOST_MOVE_UREFN
  302. #define BOOST_MOVE_UREF0
  303. #define BOOST_MOVE_UREF1 BOOST_FWD_REF(P0) p0
  304. #define BOOST_MOVE_UREF2 BOOST_MOVE_UREF1, BOOST_FWD_REF(P1) p1
  305. #define BOOST_MOVE_UREF3 BOOST_MOVE_UREF2, BOOST_FWD_REF(P2) p2
  306. #define BOOST_MOVE_UREF4 BOOST_MOVE_UREF3, BOOST_FWD_REF(P3) p3
  307. #define BOOST_MOVE_UREF5 BOOST_MOVE_UREF4, BOOST_FWD_REF(P4) p4
  308. #define BOOST_MOVE_UREF6 BOOST_MOVE_UREF5, BOOST_FWD_REF(P5) p5
  309. #define BOOST_MOVE_UREF7 BOOST_MOVE_UREF6, BOOST_FWD_REF(P6) p6
  310. #define BOOST_MOVE_UREF8 BOOST_MOVE_UREF7, BOOST_FWD_REF(P7) p7
  311. #define BOOST_MOVE_UREF9 BOOST_MOVE_UREF8, BOOST_FWD_REF(P8) p8
  312. //BOOST_MOVE_UREFQN
  313. #define BOOST_MOVE_UREFQ0
  314. #define BOOST_MOVE_UREFQ1 BOOST_FWD_REF(Q0) q0
  315. #define BOOST_MOVE_UREFQ2 BOOST_MOVE_UREFQ1, BOOST_FWD_REF(Q1) q1
  316. #define BOOST_MOVE_UREFQ3 BOOST_MOVE_UREFQ2, BOOST_FWD_REF(Q2) q2
  317. #define BOOST_MOVE_UREFQ4 BOOST_MOVE_UREFQ3, BOOST_FWD_REF(Q3) q3
  318. #define BOOST_MOVE_UREFQ5 BOOST_MOVE_UREFQ4, BOOST_FWD_REF(Q4) q4
  319. #define BOOST_MOVE_UREFQ6 BOOST_MOVE_UREFQ5, BOOST_FWD_REF(Q5) q5
  320. #define BOOST_MOVE_UREFQ7 BOOST_MOVE_UREFQ6, BOOST_FWD_REF(Q6) q6
  321. #define BOOST_MOVE_UREFQ8 BOOST_MOVE_UREFQ7, BOOST_FWD_REF(Q7) q7
  322. #define BOOST_MOVE_UREFQ9 BOOST_MOVE_UREFQ8, BOOST_FWD_REF(Q8) q8
  323. //BOOST_MOVE_VALN
  324. #define BOOST_MOVE_VAL0
  325. #define BOOST_MOVE_VAL1 BOOST_FWD_REF(P0) p0
  326. #define BOOST_MOVE_VAL2 BOOST_MOVE_VAL1, BOOST_FWD_REF(P1) p1
  327. #define BOOST_MOVE_VAL3 BOOST_MOVE_VAL2, BOOST_FWD_REF(P2) p2
  328. #define BOOST_MOVE_VAL4 BOOST_MOVE_VAL3, BOOST_FWD_REF(P3) p3
  329. #define BOOST_MOVE_VAL5 BOOST_MOVE_VAL4, BOOST_FWD_REF(P4) p4
  330. #define BOOST_MOVE_VAL6 BOOST_MOVE_VAL5, BOOST_FWD_REF(P5) p5
  331. #define BOOST_MOVE_VAL7 BOOST_MOVE_VAL6, BOOST_FWD_REF(P6) p6
  332. #define BOOST_MOVE_VAL8 BOOST_MOVE_VAL7, BOOST_FWD_REF(P7) p7
  333. #define BOOST_MOVE_VAL9 BOOST_MOVE_VAL8, BOOST_FWD_REF(P8) p8
  334. //BOOST_MOVE_VALQN
  335. #define BOOST_MOVE_VALQ0
  336. #define BOOST_MOVE_VALQ1 BOOST_FWD_REF(Q0) q0
  337. #define BOOST_MOVE_VALQ2 BOOST_MOVE_VALQ1, BOOST_FWD_REF(Q1) q1
  338. #define BOOST_MOVE_VALQ3 BOOST_MOVE_VALQ2, BOOST_FWD_REF(Q2) q2
  339. #define BOOST_MOVE_VALQ4 BOOST_MOVE_VALQ3, BOOST_FWD_REF(Q3) q3
  340. #define BOOST_MOVE_VALQ5 BOOST_MOVE_VALQ4, BOOST_FWD_REF(Q4) q4
  341. #define BOOST_MOVE_VALQ6 BOOST_MOVE_VALQ5, BOOST_FWD_REF(Q5) q5
  342. #define BOOST_MOVE_VALQ7 BOOST_MOVE_VALQ6, BOOST_FWD_REF(Q6) q6
  343. #define BOOST_MOVE_VALQ8 BOOST_MOVE_VALQ7, BOOST_FWD_REF(Q7) q7
  344. #define BOOST_MOVE_VALQ9 BOOST_MOVE_VALQ8, BOOST_FWD_REF(Q8) q8
  345. #define BOOST_MOVE_UNVOIDCREF(T) const typename boost::move_detail::unvoid<T>::type&
  346. //BOOST_MOVE_CREFN
  347. #define BOOST_MOVE_CREF0
  348. #define BOOST_MOVE_CREF1 BOOST_MOVE_UNVOIDCREF(P0) p0
  349. #define BOOST_MOVE_CREF2 BOOST_MOVE_CREF1, BOOST_MOVE_UNVOIDCREF(P1) p1
  350. #define BOOST_MOVE_CREF3 BOOST_MOVE_CREF2, BOOST_MOVE_UNVOIDCREF(P2) p2
  351. #define BOOST_MOVE_CREF4 BOOST_MOVE_CREF3, BOOST_MOVE_UNVOIDCREF(P3) p3
  352. #define BOOST_MOVE_CREF5 BOOST_MOVE_CREF4, BOOST_MOVE_UNVOIDCREF(P4) p4
  353. #define BOOST_MOVE_CREF6 BOOST_MOVE_CREF5, BOOST_MOVE_UNVOIDCREF(P5) p5
  354. #define BOOST_MOVE_CREF7 BOOST_MOVE_CREF6, BOOST_MOVE_UNVOIDCREF(P6) p6
  355. #define BOOST_MOVE_CREF8 BOOST_MOVE_CREF7, BOOST_MOVE_UNVOIDCREF(P7) p7
  356. #define BOOST_MOVE_CREF9 BOOST_MOVE_CREF8, BOOST_MOVE_UNVOIDCREF(P8) p8
  357. //BOOST_MOVE_CREFQN
  358. #define BOOST_MOVE_CREFQ0
  359. #define BOOST_MOVE_CREFQ1 BOOST_MOVE_UNVOIDCREF(Q0) q0
  360. #define BOOST_MOVE_CREFQ2 BOOST_MOVE_CREFQ1, BOOST_MOVE_UNVOIDCREF(Q1) q1
  361. #define BOOST_MOVE_CREFQ3 BOOST_MOVE_CREFQ2, BOOST_MOVE_UNVOIDCREF(Q2) q2
  362. #define BOOST_MOVE_CREFQ4 BOOST_MOVE_CREFQ3, BOOST_MOVE_UNVOIDCREF(Q3) q3
  363. #define BOOST_MOVE_CREFQ5 BOOST_MOVE_CREFQ4, BOOST_MOVE_UNVOIDCREF(Q4) q4
  364. #define BOOST_MOVE_CREFQ6 BOOST_MOVE_CREFQ5, BOOST_MOVE_UNVOIDCREF(Q5) q5
  365. #define BOOST_MOVE_CREFQ7 BOOST_MOVE_CREFQ6, BOOST_MOVE_UNVOIDCREF(Q6) q6
  366. #define BOOST_MOVE_CREFQ8 BOOST_MOVE_CREFQ7, BOOST_MOVE_UNVOIDCREF(Q7) q7
  367. #define BOOST_MOVE_CREFQ9 BOOST_MOVE_CREFQ8, BOOST_MOVE_UNVOIDCREF(Q8) q8
  368. //BOOST_MOVE_CLASSN
  369. #define BOOST_MOVE_CLASS0
  370. #define BOOST_MOVE_CLASS1 class P0
  371. #define BOOST_MOVE_CLASS2 BOOST_MOVE_CLASS1, class P1
  372. #define BOOST_MOVE_CLASS3 BOOST_MOVE_CLASS2, class P2
  373. #define BOOST_MOVE_CLASS4 BOOST_MOVE_CLASS3, class P3
  374. #define BOOST_MOVE_CLASS5 BOOST_MOVE_CLASS4, class P4
  375. #define BOOST_MOVE_CLASS6 BOOST_MOVE_CLASS5, class P5
  376. #define BOOST_MOVE_CLASS7 BOOST_MOVE_CLASS6, class P6
  377. #define BOOST_MOVE_CLASS8 BOOST_MOVE_CLASS7, class P7
  378. #define BOOST_MOVE_CLASS9 BOOST_MOVE_CLASS8, class P8
  379. //BOOST_MOVE_CLASSQN
  380. #define BOOST_MOVE_CLASSQ0
  381. #define BOOST_MOVE_CLASSQ1 class Q0
  382. #define BOOST_MOVE_CLASSQ2 BOOST_MOVE_CLASSQ1, class Q1
  383. #define BOOST_MOVE_CLASSQ3 BOOST_MOVE_CLASSQ2, class Q2
  384. #define BOOST_MOVE_CLASSQ4 BOOST_MOVE_CLASSQ3, class Q3
  385. #define BOOST_MOVE_CLASSQ5 BOOST_MOVE_CLASSQ4, class Q4
  386. #define BOOST_MOVE_CLASSQ6 BOOST_MOVE_CLASSQ5, class Q5
  387. #define BOOST_MOVE_CLASSQ7 BOOST_MOVE_CLASSQ6, class Q6
  388. #define BOOST_MOVE_CLASSQ8 BOOST_MOVE_CLASSQ7, class Q7
  389. #define BOOST_MOVE_CLASSQ9 BOOST_MOVE_CLASSQ8, class Q8
  390. //BOOST_MOVE_CLASSDFLTN
  391. #define BOOST_MOVE_CLASSDFLT0
  392. #define BOOST_MOVE_CLASSDFLT1 class P0 = void
  393. #define BOOST_MOVE_CLASSDFLT2 BOOST_MOVE_CLASSDFLT1, class P1 = void
  394. #define BOOST_MOVE_CLASSDFLT3 BOOST_MOVE_CLASSDFLT2, class P2 = void
  395. #define BOOST_MOVE_CLASSDFLT4 BOOST_MOVE_CLASSDFLT3, class P3 = void
  396. #define BOOST_MOVE_CLASSDFLT5 BOOST_MOVE_CLASSDFLT4, class P4 = void
  397. #define BOOST_MOVE_CLASSDFLT6 BOOST_MOVE_CLASSDFLT5, class P5 = void
  398. #define BOOST_MOVE_CLASSDFLT7 BOOST_MOVE_CLASSDFLT6, class P6 = void
  399. #define BOOST_MOVE_CLASSDFLT8 BOOST_MOVE_CLASSDFLT7, class P7 = void
  400. #define BOOST_MOVE_CLASSDFLT9 BOOST_MOVE_CLASSDFLT8, class P8 = void
  401. //BOOST_MOVE_CLASSDFLTQN
  402. #define BOOST_MOVE_CLASSDFLTQ0
  403. #define BOOST_MOVE_CLASSDFLTQ1 class Q0 = void
  404. #define BOOST_MOVE_CLASSDFLTQ2 BOOST_MOVE_CLASSDFLTQ1, class Q1 = void
  405. #define BOOST_MOVE_CLASSDFLTQ3 BOOST_MOVE_CLASSDFLTQ2, class Q2 = void
  406. #define BOOST_MOVE_CLASSDFLTQ4 BOOST_MOVE_CLASSDFLTQ3, class Q3 = void
  407. #define BOOST_MOVE_CLASSDFLTQ5 BOOST_MOVE_CLASSDFLTQ4, class Q4 = void
  408. #define BOOST_MOVE_CLASSDFLTQ6 BOOST_MOVE_CLASSDFLTQ5, class Q5 = void
  409. #define BOOST_MOVE_CLASSDFLTQ7 BOOST_MOVE_CLASSDFLTQ6, class Q6 = void
  410. #define BOOST_MOVE_CLASSDFLTQ8 BOOST_MOVE_CLASSDFLTQ7, class Q7 = void
  411. #define BOOST_MOVE_CLASSDFLTQ9 BOOST_MOVE_CLASSDFLTQ8, class Q8 = void
  412. //BOOST_MOVE_LAST_TARGN
  413. #define BOOST_MOVE_LAST_TARG0 void
  414. #define BOOST_MOVE_LAST_TARG1 P0
  415. #define BOOST_MOVE_LAST_TARG2 P1
  416. #define BOOST_MOVE_LAST_TARG3 P2
  417. #define BOOST_MOVE_LAST_TARG4 P3
  418. #define BOOST_MOVE_LAST_TARG5 P4
  419. #define BOOST_MOVE_LAST_TARG6 P5
  420. #define BOOST_MOVE_LAST_TARG7 P6
  421. #define BOOST_MOVE_LAST_TARG8 P7
  422. #define BOOST_MOVE_LAST_TARG9 P8
  423. //BOOST_MOVE_LAST_TARGQN
  424. #define BOOST_MOVE_LAST_TARGQ0 void
  425. #define BOOST_MOVE_LAST_TARGQ1 Q0
  426. #define BOOST_MOVE_LAST_TARGQ2 Q1
  427. #define BOOST_MOVE_LAST_TARGQ3 Q2
  428. #define BOOST_MOVE_LAST_TARGQ4 Q3
  429. #define BOOST_MOVE_LAST_TARGQ5 Q4
  430. #define BOOST_MOVE_LAST_TARGQ6 Q5
  431. #define BOOST_MOVE_LAST_TARGQ7 Q6
  432. #define BOOST_MOVE_LAST_TARGQ8 Q7
  433. #define BOOST_MOVE_LAST_TARGQ9 Q8
  434. //BOOST_MOVE_TARGN
  435. #define BOOST_MOVE_TARG0
  436. #define BOOST_MOVE_TARG1 P0
  437. #define BOOST_MOVE_TARG2 BOOST_MOVE_TARG1, P1
  438. #define BOOST_MOVE_TARG3 BOOST_MOVE_TARG2, P2
  439. #define BOOST_MOVE_TARG4 BOOST_MOVE_TARG3, P3
  440. #define BOOST_MOVE_TARG5 BOOST_MOVE_TARG4, P4
  441. #define BOOST_MOVE_TARG6 BOOST_MOVE_TARG5, P5
  442. #define BOOST_MOVE_TARG7 BOOST_MOVE_TARG6, P6
  443. #define BOOST_MOVE_TARG8 BOOST_MOVE_TARG7, P7
  444. #define BOOST_MOVE_TARG9 BOOST_MOVE_TARG8, P8
  445. //BOOST_MOVE_TARGQN
  446. #define BOOST_MOVE_TARGQ0
  447. #define BOOST_MOVE_TARGQ1 Q0
  448. #define BOOST_MOVE_TARGQ2 BOOST_MOVE_TARGQ1, Q1
  449. #define BOOST_MOVE_TARGQ3 BOOST_MOVE_TARGQ2, Q2
  450. #define BOOST_MOVE_TARGQ4 BOOST_MOVE_TARGQ3, Q3
  451. #define BOOST_MOVE_TARGQ5 BOOST_MOVE_TARGQ4, Q4
  452. #define BOOST_MOVE_TARGQ6 BOOST_MOVE_TARGQ5, Q5
  453. #define BOOST_MOVE_TARGQ7 BOOST_MOVE_TARGQ6, Q6
  454. #define BOOST_MOVE_TARGQ8 BOOST_MOVE_TARGQ7, Q7
  455. #define BOOST_MOVE_TARGQ9 BOOST_MOVE_TARGQ8, Q8
  456. //BOOST_MOVE_FWD_TN
  457. #define BOOST_MOVE_FWD_T0
  458. #define BOOST_MOVE_FWD_T1 typename ::boost::move_detail::forward_type<P0>::type
  459. #define BOOST_MOVE_FWD_T2 BOOST_MOVE_FWD_T1, typename ::boost::move_detail::forward_type<P1>::type
  460. #define BOOST_MOVE_FWD_T3 BOOST_MOVE_FWD_T2, typename ::boost::move_detail::forward_type<P2>::type
  461. #define BOOST_MOVE_FWD_T4 BOOST_MOVE_FWD_T3, typename ::boost::move_detail::forward_type<P3>::type
  462. #define BOOST_MOVE_FWD_T5 BOOST_MOVE_FWD_T4, typename ::boost::move_detail::forward_type<P4>::type
  463. #define BOOST_MOVE_FWD_T6 BOOST_MOVE_FWD_T5, typename ::boost::move_detail::forward_type<P5>::type
  464. #define BOOST_MOVE_FWD_T7 BOOST_MOVE_FWD_T6, typename ::boost::move_detail::forward_type<P6>::type
  465. #define BOOST_MOVE_FWD_T8 BOOST_MOVE_FWD_T7, typename ::boost::move_detail::forward_type<P7>::type
  466. #define BOOST_MOVE_FWD_T9 BOOST_MOVE_FWD_T8, typename ::boost::move_detail::forward_type<P8>::type
  467. //BOOST_MOVE_FWD_TQN
  468. #define BOOST_MOVE_FWD_TQ0
  469. #define BOOST_MOVE_FWD_TQ1 typename ::boost::move_detail::forward_type<Q0>::type
  470. #define BOOST_MOVE_FWD_TQ2 BOOST_MOVE_FWD_TQ1, typename ::boost::move_detail::forward_type<Q1>::type
  471. #define BOOST_MOVE_FWD_TQ3 BOOST_MOVE_FWD_TQ2, typename ::boost::move_detail::forward_type<Q2>::type
  472. #define BOOST_MOVE_FWD_TQ4 BOOST_MOVE_FWD_TQ3, typename ::boost::move_detail::forward_type<Q3>::type
  473. #define BOOST_MOVE_FWD_TQ5 BOOST_MOVE_FWD_TQ4, typename ::boost::move_detail::forward_type<Q4>::type
  474. #define BOOST_MOVE_FWD_TQ6 BOOST_MOVE_FWD_TQ5, typename ::boost::move_detail::forward_type<Q5>::type
  475. #define BOOST_MOVE_FWD_TQ7 BOOST_MOVE_FWD_TQ6, typename ::boost::move_detail::forward_type<Q6>::type
  476. #define BOOST_MOVE_FWD_TQ8 BOOST_MOVE_FWD_TQ7, typename ::boost::move_detail::forward_type<Q7>::type
  477. #define BOOST_MOVE_FWD_TQ9 BOOST_MOVE_FWD_TQ8, typename ::boost::move_detail::forward_type<Q8>::type
  478. //BOOST_MOVE_MREFX
  479. #define BOOST_MOVE_MREF0
  480. #define BOOST_MOVE_MREF1 BOOST_MOVE_MREF(P0) m_p0;
  481. #define BOOST_MOVE_MREF2 BOOST_MOVE_MREF1 BOOST_MOVE_MREF(P1) m_p1;
  482. #define BOOST_MOVE_MREF3 BOOST_MOVE_MREF2 BOOST_MOVE_MREF(P2) m_p2;
  483. #define BOOST_MOVE_MREF4 BOOST_MOVE_MREF3 BOOST_MOVE_MREF(P3) m_p3;
  484. #define BOOST_MOVE_MREF5 BOOST_MOVE_MREF4 BOOST_MOVE_MREF(P4) m_p4;
  485. #define BOOST_MOVE_MREF6 BOOST_MOVE_MREF5 BOOST_MOVE_MREF(P5) m_p5;
  486. #define BOOST_MOVE_MREF7 BOOST_MOVE_MREF6 BOOST_MOVE_MREF(P6) m_p6;
  487. #define BOOST_MOVE_MREF8 BOOST_MOVE_MREF7 BOOST_MOVE_MREF(P7) m_p7;
  488. #define BOOST_MOVE_MREF9 BOOST_MOVE_MREF8 BOOST_MOVE_MREF(P8) m_p8;
  489. //BOOST_MOVE_MREFQX
  490. #define BOOST_MOVE_MREFQ0
  491. #define BOOST_MOVE_MREFQ1 BOOST_MOVE_MREFQ(Q0) m_q0;
  492. #define BOOST_MOVE_MREFQ2 BOOST_MOVE_MREFQ1 BOOST_MOVE_MREFQ(Q1) m_q1;
  493. #define BOOST_MOVE_MREFQ3 BOOST_MOVE_MREFQ2 BOOST_MOVE_MREFQ(Q2) m_q2;
  494. #define BOOST_MOVE_MREFQ4 BOOST_MOVE_MREFQ3 BOOST_MOVE_MREFQ(Q3) m_q3;
  495. #define BOOST_MOVE_MREFQ5 BOOST_MOVE_MREFQ4 BOOST_MOVE_MREFQ(Q4) m_q4;
  496. #define BOOST_MOVE_MREFQ6 BOOST_MOVE_MREFQ5 BOOST_MOVE_MREFQ(Q5) m_q5;
  497. #define BOOST_MOVE_MREFQ7 BOOST_MOVE_MREFQ6 BOOST_MOVE_MREFQ(Q6) m_q6;
  498. #define BOOST_MOVE_MREFQ8 BOOST_MOVE_MREFQ7 BOOST_MOVE_MREFQ(Q7) m_q7;
  499. #define BOOST_MOVE_MREFQ9 BOOST_MOVE_MREFQ8 BOOST_MOVE_MREFQ(Q8) m_q8;
  500. //BOOST_MOVE_MEMBX
  501. #define BOOST_MOVE_MEMB0
  502. #define BOOST_MOVE_MEMB1 P0 m_p0;
  503. #define BOOST_MOVE_MEMB2 BOOST_MOVE_MEMB1 P1 m_p1;
  504. #define BOOST_MOVE_MEMB3 BOOST_MOVE_MEMB2 P2 m_p2;
  505. #define BOOST_MOVE_MEMB4 BOOST_MOVE_MEMB3 P3 m_p3;
  506. #define BOOST_MOVE_MEMB5 BOOST_MOVE_MEMB4 P4 m_p4;
  507. #define BOOST_MOVE_MEMB6 BOOST_MOVE_MEMB5 P5 m_p5;
  508. #define BOOST_MOVE_MEMB7 BOOST_MOVE_MEMB6 P6 m_p6;
  509. #define BOOST_MOVE_MEMB8 BOOST_MOVE_MEMB7 P7 m_p7;
  510. #define BOOST_MOVE_MEMB9 BOOST_MOVE_MEMB8 P8 m_p8;
  511. //BOOST_MOVE_MEMBQX
  512. #define BOOST_MOVE_MEMBQ0
  513. #define BOOST_MOVE_MEMBQ1 Q0 m_q0;
  514. #define BOOST_MOVE_MEMBQ2 BOOST_MOVE_MEMBQ1 Q1 m_q1;
  515. #define BOOST_MOVE_MEMBQ3 BOOST_MOVE_MEMBQ2 Q2 m_q2;
  516. #define BOOST_MOVE_MEMBQ4 BOOST_MOVE_MEMBQ3 Q3 m_q3;
  517. #define BOOST_MOVE_MEMBQ5 BOOST_MOVE_MEMBQ4 Q4 m_q4;
  518. #define BOOST_MOVE_MEMBQ6 BOOST_MOVE_MEMBQ5 Q5 m_q5;
  519. #define BOOST_MOVE_MEMBQ7 BOOST_MOVE_MEMBQ6 Q6 m_q6;
  520. #define BOOST_MOVE_MEMBQ8 BOOST_MOVE_MEMBQ7 Q7 m_q7;
  521. #define BOOST_MOVE_MEMBQ9 BOOST_MOVE_MEMBQ8 Q8 m_q8;
  522. //BOOST_MOVE_TMPL_LTN
  523. #define BOOST_MOVE_TMPL_LT0
  524. #define BOOST_MOVE_TMPL_LT1 template<
  525. #define BOOST_MOVE_TMPL_LT2 BOOST_MOVE_TMPL_LT1
  526. #define BOOST_MOVE_TMPL_LT3 BOOST_MOVE_TMPL_LT1
  527. #define BOOST_MOVE_TMPL_LT4 BOOST_MOVE_TMPL_LT1
  528. #define BOOST_MOVE_TMPL_LT5 BOOST_MOVE_TMPL_LT1
  529. #define BOOST_MOVE_TMPL_LT6 BOOST_MOVE_TMPL_LT1
  530. #define BOOST_MOVE_TMPL_LT7 BOOST_MOVE_TMPL_LT1
  531. #define BOOST_MOVE_TMPL_LT8 BOOST_MOVE_TMPL_LT1
  532. #define BOOST_MOVE_TMPL_LT9 BOOST_MOVE_TMPL_LT1
  533. //BOOST_MOVE_LTN
  534. #define BOOST_MOVE_LT0
  535. #define BOOST_MOVE_LT1 <
  536. #define BOOST_MOVE_LT2 BOOST_MOVE_LT1
  537. #define BOOST_MOVE_LT3 BOOST_MOVE_LT1
  538. #define BOOST_MOVE_LT4 BOOST_MOVE_LT1
  539. #define BOOST_MOVE_LT5 BOOST_MOVE_LT1
  540. #define BOOST_MOVE_LT6 BOOST_MOVE_LT1
  541. #define BOOST_MOVE_LT7 BOOST_MOVE_LT1
  542. #define BOOST_MOVE_LT8 BOOST_MOVE_LT1
  543. #define BOOST_MOVE_LT9 BOOST_MOVE_LT1
  544. //BOOST_MOVE_GTN
  545. #define BOOST_MOVE_GT0
  546. #define BOOST_MOVE_GT1 >
  547. #define BOOST_MOVE_GT2 BOOST_MOVE_GT1
  548. #define BOOST_MOVE_GT3 BOOST_MOVE_GT1
  549. #define BOOST_MOVE_GT4 BOOST_MOVE_GT1
  550. #define BOOST_MOVE_GT5 BOOST_MOVE_GT1
  551. #define BOOST_MOVE_GT6 BOOST_MOVE_GT1
  552. #define BOOST_MOVE_GT7 BOOST_MOVE_GT1
  553. #define BOOST_MOVE_GT8 BOOST_MOVE_GT1
  554. #define BOOST_MOVE_GT9 BOOST_MOVE_GT1
  555. //BOOST_MOVE_LPN
  556. #define BOOST_MOVE_LP0
  557. #define BOOST_MOVE_LP1 (
  558. #define BOOST_MOVE_LP2 BOOST_MOVE_LP1
  559. #define BOOST_MOVE_LP3 BOOST_MOVE_LP1
  560. #define BOOST_MOVE_LP4 BOOST_MOVE_LP1
  561. #define BOOST_MOVE_LP5 BOOST_MOVE_LP1
  562. #define BOOST_MOVE_LP6 BOOST_MOVE_LP1
  563. #define BOOST_MOVE_LP7 BOOST_MOVE_LP1
  564. #define BOOST_MOVE_LP8 BOOST_MOVE_LP1
  565. #define BOOST_MOVE_LP9 BOOST_MOVE_LP1
  566. //BOOST_MOVE_RPN
  567. #define BOOST_MOVE_RP0
  568. #define BOOST_MOVE_RP1 )
  569. #define BOOST_MOVE_RP2 BOOST_MOVE_RP1
  570. #define BOOST_MOVE_RP3 BOOST_MOVE_RP1
  571. #define BOOST_MOVE_RP4 BOOST_MOVE_RP1
  572. #define BOOST_MOVE_RP5 BOOST_MOVE_RP1
  573. #define BOOST_MOVE_RP6 BOOST_MOVE_RP1
  574. #define BOOST_MOVE_RP7 BOOST_MOVE_RP1
  575. #define BOOST_MOVE_RP8 BOOST_MOVE_RP1
  576. #define BOOST_MOVE_RP9 BOOST_MOVE_RP1
  577. //BOOST_MOVE_IN
  578. #define BOOST_MOVE_I0
  579. #define BOOST_MOVE_I1 ,
  580. #define BOOST_MOVE_I2 BOOST_MOVE_I1
  581. #define BOOST_MOVE_I3 BOOST_MOVE_I1
  582. #define BOOST_MOVE_I4 BOOST_MOVE_I1
  583. #define BOOST_MOVE_I5 BOOST_MOVE_I1
  584. #define BOOST_MOVE_I6 BOOST_MOVE_I1
  585. #define BOOST_MOVE_I7 BOOST_MOVE_I1
  586. #define BOOST_MOVE_I8 BOOST_MOVE_I1
  587. #define BOOST_MOVE_I9 BOOST_MOVE_I1
  588. //BOOST_MOVE_BOOL
  589. # define BOOST_MOVE_BOOL(x) BOOST_MOVE_BOOL_I(x)
  590. # define BOOST_MOVE_BOOL_I(x) BOOST_MOVE_BOOL##x
  591. # define BOOST_MOVE_BOOL0 0
  592. # define BOOST_MOVE_BOOL1 1
  593. # define BOOST_MOVE_BOOL2 1
  594. # define BOOST_MOVE_BOOL3 1
  595. # define BOOST_MOVE_BOOL4 1
  596. # define BOOST_MOVE_BOOL5 1
  597. # define BOOST_MOVE_BOOL6 1
  598. # define BOOST_MOVE_BOOL7 1
  599. # define BOOST_MOVE_BOOL8 1
  600. # define BOOST_MOVE_BOOL9 1
  601. //BOOST_MOVE_I_IF
  602. #define BOOST_MOVE_I_IF(x) BOOST_MOVE_I_IF_I (BOOST_MOVE_BOOL(x))
  603. #define BOOST_MOVE_I_IF_I(x) BOOST_MOVE_I_IF_I2(x)
  604. #define BOOST_MOVE_I_IF_I2(x) BOOST_MOVE_IF_I_##x
  605. #define BOOST_MOVE_IF_I_0
  606. #define BOOST_MOVE_IF_I_1 ,
  607. //BOOST_MOVE_IF
  608. #define BOOST_MOVE_IF(cond, t, f) BOOST_MOVE_IF_I(cond, t, f)
  609. #define BOOST_MOVE_IF_I(cond, t, f) BOOST_MOVE_IIF(BOOST_MOVE_BOOL(cond), t, f)
  610. #define BOOST_MOVE_IIF(bit, t, f) BOOST_MOVE_IIF_I(bit, t, f)
  611. #define BOOST_MOVE_IIF_I(bit, t, f) BOOST_MOVE_IIF_##bit(t, f)
  612. #define BOOST_MOVE_IIF_0(t, f) f
  613. #define BOOST_MOVE_IIF_1(t, f) t
  614. /*
  615. #define BOOST_MOVE_IIF(bit, t, f) BOOST_MOVE_IIF_OO((bit, t, f))
  616. #define BOOST_MOVE_IIF_OO(par) BOOST_MOVE_IIF_I ## par
  617. #define BOOST_MOVE_IIF_I(bit, t, f) BOOST_MOVE_IIF_II(BOOST_MOVE_IIF_ ## bit(t, f))
  618. #define BOOST_MOVE_IIF_II(id) id
  619. #define BOOST_MOVE_IIF_0(t, f) f
  620. #define BOOST_MOVE_IIF_1(t, f) t
  621. */
  622. //BOOST_MOVE_COLON
  623. #define BOOST_MOVE_COLON0
  624. #define BOOST_MOVE_COLON1 :
  625. #define BOOST_MOVE_COLON2 BOOST_MOVE_COLON1
  626. #define BOOST_MOVE_COLON3 BOOST_MOVE_COLON1
  627. #define BOOST_MOVE_COLON4 BOOST_MOVE_COLON1
  628. #define BOOST_MOVE_COLON5 BOOST_MOVE_COLON1
  629. #define BOOST_MOVE_COLON6 BOOST_MOVE_COLON1
  630. #define BOOST_MOVE_COLON7 BOOST_MOVE_COLON1
  631. #define BOOST_MOVE_COLON8 BOOST_MOVE_COLON1
  632. #define BOOST_MOVE_COLON9 BOOST_MOVE_COLON1
  633. //BOOST_MOVE_BITOR
  634. #define BOOST_MOVE_BITOR(x,y) BOOST_MOVE_BITOR_I(x,y)
  635. #define BOOST_MOVE_BITOR_I(x,y) BOOST_MOVE_BITOR##x##y
  636. #define BOOST_MOVE_BITOR00 0
  637. #define BOOST_MOVE_BITOR01 1
  638. #define BOOST_MOVE_BITOR10 1
  639. #define BOOST_MOVE_BITOR11 1
  640. //BOOST_MOVE_OR
  641. #define BOOST_MOVE_OR(x, y) BOOST_MOVE_OR_I(x, y)
  642. #define BOOST_MOVE_OR_I(x, y) BOOST_MOVE_BITOR(BOOST_MOVE_BOOL(x), BOOST_MOVE_BOOL(y))
  643. //BOOST_MOVE_BITAND
  644. #define BOOST_MOVE_BITAND(x,y) BOOST_MOVE_BITAND_I(x,y)
  645. #define BOOST_MOVE_BITAND_I(x,y) BOOST_MOVE_BITAND##x##y
  646. #define BOOST_MOVE_BITAND00 0
  647. #define BOOST_MOVE_BITAND01 0
  648. #define BOOST_MOVE_BITAND10 0
  649. #define BOOST_MOVE_BITAND11 1
  650. //BOOST_MOVE_AND
  651. #define BOOST_MOVE_AND(x, y) BOOST_MOVE_AND_I(x, y)
  652. #define BOOST_MOVE_AND_I(x, y) BOOST_MOVE_BITAND(BOOST_MOVE_BOOL(x), BOOST_MOVE_BOOL(y))
  653. //BOOST_MOVE_DEC
  654. #define BOOST_MOVE_DEC(x) BOOST_MOVE_DEC_I(x)
  655. #define BOOST_MOVE_DEC_I(x) BOOST_MOVE_DEC##x
  656. #define BOOST_MOVE_DEC1 0
  657. #define BOOST_MOVE_DEC2 1
  658. #define BOOST_MOVE_DEC3 2
  659. #define BOOST_MOVE_DEC4 3
  660. #define BOOST_MOVE_DEC5 4
  661. #define BOOST_MOVE_DEC6 5
  662. #define BOOST_MOVE_DEC7 6
  663. #define BOOST_MOVE_DEC8 7
  664. #define BOOST_MOVE_DEC9 8
  665. #define BOOST_MOVE_DEC10 9
  666. #define BOOST_MOVE_DEC11 10
  667. #define BOOST_MOVE_DEC12 11
  668. #define BOOST_MOVE_DEC13 12
  669. #define BOOST_MOVE_DEC14 13
  670. //BOOST_MOVE_SUB
  671. #define BOOST_MOVE_SUB(x, y) BOOST_MOVE_SUB_I(x,y)
  672. #define BOOST_MOVE_SUB_I(x, y) BOOST_MOVE_SUB##y(x)
  673. #define BOOST_MOVE_SUB0(x) x
  674. #define BOOST_MOVE_SUB1(x) BOOST_MOVE_DEC(x)
  675. #define BOOST_MOVE_SUB2(x) BOOST_MOVE_SUB1(BOOST_MOVE_DEC(x))
  676. #define BOOST_MOVE_SUB3(x) BOOST_MOVE_SUB2(BOOST_MOVE_DEC(x))
  677. #define BOOST_MOVE_SUB4(x) BOOST_MOVE_SUB3(BOOST_MOVE_DEC(x))
  678. #define BOOST_MOVE_SUB5(x) BOOST_MOVE_SUB4(BOOST_MOVE_DEC(x))
  679. #define BOOST_MOVE_SUB6(x) BOOST_MOVE_SUB5(BOOST_MOVE_DEC(x))
  680. #define BOOST_MOVE_SUB7(x) BOOST_MOVE_SUB6(BOOST_MOVE_DEC(x))
  681. #define BOOST_MOVE_SUB8(x) BOOST_MOVE_SUB7(BOOST_MOVE_DEC(x))
  682. #define BOOST_MOVE_SUB9(x) BOOST_MOVE_SUB8(BOOST_MOVE_DEC(x))
  683. #define BOOST_MOVE_SUB10(x) BOOST_MOVE_SUB9(BOOST_MOVE_DEC(x))
  684. #define BOOST_MOVE_SUB11(x) BOOST_MOVE_SUB10(BOOST_MOVE_DEC(x))
  685. #define BOOST_MOVE_SUB12(x) BOOST_MOVE_SUB11(BOOST_MOVE_DEC(x))
  686. #define BOOST_MOVE_SUB13(x) BOOST_MOVE_SUB12(BOOST_MOVE_DEC(x))
  687. #define BOOST_MOVE_SUB14(x) BOOST_MOVE_SUB13(BOOST_MOVE_DEC(x))
  688. //BOOST_MOVE_INC
  689. #define BOOST_MOVE_INC(x) BOOST_MOVE_INC_I(x)
  690. #define BOOST_MOVE_INC_I(x) BOOST_MOVE_INC##x
  691. #define BOOST_MOVE_INC0 1
  692. #define BOOST_MOVE_INC1 2
  693. #define BOOST_MOVE_INC2 3
  694. #define BOOST_MOVE_INC3 4
  695. #define BOOST_MOVE_INC4 5
  696. #define BOOST_MOVE_INC5 6
  697. #define BOOST_MOVE_INC6 7
  698. #define BOOST_MOVE_INC7 8
  699. #define BOOST_MOVE_INC8 9
  700. #define BOOST_MOVE_INC9 10
  701. #define BOOST_MOVE_INC10 11
  702. #define BOOST_MOVE_INC11 12
  703. #define BOOST_MOVE_INC12 13
  704. #define BOOST_MOVE_INC13 14
  705. //BOOST_MOVE_ADD
  706. #define BOOST_MOVE_ADD(x, y) BOOST_MOVE_ADD_I(x,y)
  707. #define BOOST_MOVE_ADD_I(x, y) BOOST_MOVE_ADD##y(x)
  708. #define BOOST_MOVE_ADD0(x) x
  709. #define BOOST_MOVE_ADD1(x) BOOST_MOVE_INC(x)
  710. #define BOOST_MOVE_ADD2(x) BOOST_MOVE_ADD1(BOOST_MOVE_INC(x))
  711. #define BOOST_MOVE_ADD3(x) BOOST_MOVE_ADD2(BOOST_MOVE_INC(x))
  712. #define BOOST_MOVE_ADD4(x) BOOST_MOVE_ADD3(BOOST_MOVE_INC(x))
  713. #define BOOST_MOVE_ADD5(x) BOOST_MOVE_ADD4(BOOST_MOVE_INC(x))
  714. #define BOOST_MOVE_ADD6(x) BOOST_MOVE_ADD5(BOOST_MOVE_INC(x))
  715. #define BOOST_MOVE_ADD7(x) BOOST_MOVE_ADD6(BOOST_MOVE_INC(x))
  716. #define BOOST_MOVE_ADD8(x) BOOST_MOVE_ADD7(BOOST_MOVE_INC(x))
  717. #define BOOST_MOVE_ADD9(x) BOOST_MOVE_ADD8(BOOST_MOVE_INC(x))
  718. #define BOOST_MOVE_ADD10(x) BOOST_MOVE_ADD9(BOOST_MOVE_INC(x))
  719. #define BOOST_MOVE_ADD11(x) BOOST_MOVE_ADD10(BOOST_MOVE_INC(x))
  720. #define BOOST_MOVE_ADD12(x) BOOST_MOVE_ADD11(BOOST_MOVE_INC(x))
  721. #define BOOST_MOVE_ADD13(x) BOOST_MOVE_ADD12(BOOST_MOVE_INC(x))
  722. //BOOST_MOVE_ITERATE_2TON
  723. #define BOOST_MOVE_ITERATE_2TO2(MACROFUNC) MACROFUNC(2)
  724. #define BOOST_MOVE_ITERATE_2TO3(MACROFUNC) BOOST_MOVE_ITERATE_2TO2(MACROFUNC) MACROFUNC(3)
  725. #define BOOST_MOVE_ITERATE_2TO4(MACROFUNC) BOOST_MOVE_ITERATE_2TO3(MACROFUNC) MACROFUNC(4)
  726. #define BOOST_MOVE_ITERATE_2TO5(MACROFUNC) BOOST_MOVE_ITERATE_2TO4(MACROFUNC) MACROFUNC(5)
  727. #define BOOST_MOVE_ITERATE_2TO6(MACROFUNC) BOOST_MOVE_ITERATE_2TO5(MACROFUNC) MACROFUNC(6)
  728. #define BOOST_MOVE_ITERATE_2TO7(MACROFUNC) BOOST_MOVE_ITERATE_2TO6(MACROFUNC) MACROFUNC(7)
  729. #define BOOST_MOVE_ITERATE_2TO8(MACROFUNC) BOOST_MOVE_ITERATE_2TO7(MACROFUNC) MACROFUNC(8)
  730. #define BOOST_MOVE_ITERATE_2TO9(MACROFUNC) BOOST_MOVE_ITERATE_2TO8(MACROFUNC) MACROFUNC(9)
  731. //BOOST_MOVE_ITERATE_1TON
  732. #define BOOST_MOVE_ITERATE_1TO1(MACROFUNC) MACROFUNC(1)
  733. #define BOOST_MOVE_ITERATE_1TO2(MACROFUNC) BOOST_MOVE_ITERATE_1TO1(MACROFUNC) MACROFUNC(2)
  734. #define BOOST_MOVE_ITERATE_1TO3(MACROFUNC) BOOST_MOVE_ITERATE_1TO2(MACROFUNC) MACROFUNC(3)
  735. #define BOOST_MOVE_ITERATE_1TO4(MACROFUNC) BOOST_MOVE_ITERATE_1TO3(MACROFUNC) MACROFUNC(4)
  736. #define BOOST_MOVE_ITERATE_1TO5(MACROFUNC) BOOST_MOVE_ITERATE_1TO4(MACROFUNC) MACROFUNC(5)
  737. #define BOOST_MOVE_ITERATE_1TO6(MACROFUNC) BOOST_MOVE_ITERATE_1TO5(MACROFUNC) MACROFUNC(6)
  738. #define BOOST_MOVE_ITERATE_1TO7(MACROFUNC) BOOST_MOVE_ITERATE_1TO6(MACROFUNC) MACROFUNC(7)
  739. #define BOOST_MOVE_ITERATE_1TO8(MACROFUNC) BOOST_MOVE_ITERATE_1TO7(MACROFUNC) MACROFUNC(8)
  740. #define BOOST_MOVE_ITERATE_1TO9(MACROFUNC) BOOST_MOVE_ITERATE_1TO8(MACROFUNC) MACROFUNC(9)
  741. //BOOST_MOVE_ITERATE_0TON
  742. #define BOOST_MOVE_ITERATE_0TO0(MACROFUNC) MACROFUNC(0)
  743. #define BOOST_MOVE_ITERATE_0TO1(MACROFUNC) BOOST_MOVE_ITERATE_0TO0(MACROFUNC) MACROFUNC(1)
  744. #define BOOST_MOVE_ITERATE_0TO2(MACROFUNC) BOOST_MOVE_ITERATE_0TO1(MACROFUNC) MACROFUNC(2)
  745. #define BOOST_MOVE_ITERATE_0TO3(MACROFUNC) BOOST_MOVE_ITERATE_0TO2(MACROFUNC) MACROFUNC(3)
  746. #define BOOST_MOVE_ITERATE_0TO4(MACROFUNC) BOOST_MOVE_ITERATE_0TO3(MACROFUNC) MACROFUNC(4)
  747. #define BOOST_MOVE_ITERATE_0TO5(MACROFUNC) BOOST_MOVE_ITERATE_0TO4(MACROFUNC) MACROFUNC(5)
  748. #define BOOST_MOVE_ITERATE_0TO6(MACROFUNC) BOOST_MOVE_ITERATE_0TO5(MACROFUNC) MACROFUNC(6)
  749. #define BOOST_MOVE_ITERATE_0TO7(MACROFUNC) BOOST_MOVE_ITERATE_0TO6(MACROFUNC) MACROFUNC(7)
  750. #define BOOST_MOVE_ITERATE_0TO8(MACROFUNC) BOOST_MOVE_ITERATE_0TO7(MACROFUNC) MACROFUNC(8)
  751. #define BOOST_MOVE_ITERATE_0TO9(MACROFUNC) BOOST_MOVE_ITERATE_0TO8(MACROFUNC) MACROFUNC(9)
  752. //BOOST_MOVE_ITERATE_NTON
  753. #define BOOST_MOVE_ITERATE_1TO1(MACROFUNC) MACROFUNC(1)
  754. #define BOOST_MOVE_ITERATE_2TO2(MACROFUNC) MACROFUNC(2)
  755. #define BOOST_MOVE_ITERATE_3TO3(MACROFUNC) MACROFUNC(3)
  756. #define BOOST_MOVE_ITERATE_4TO4(MACROFUNC) MACROFUNC(4)
  757. #define BOOST_MOVE_ITERATE_5TO5(MACROFUNC) MACROFUNC(5)
  758. #define BOOST_MOVE_ITERATE_6TO6(MACROFUNC) MACROFUNC(6)
  759. #define BOOST_MOVE_ITERATE_7TO7(MACROFUNC) MACROFUNC(7)
  760. #define BOOST_MOVE_ITERATE_8TO8(MACROFUNC) MACROFUNC(8)
  761. #define BOOST_MOVE_ITERATE_9TO9(MACROFUNC) MACROFUNC(9)
  762. //BOOST_MOVE_ITER2D_0TOMAX
  763. #define BOOST_MOVE_ITER2DLOW_0TOMAX0(MACROFUNC2D, M) MACROFUNC2D(M, 0)
  764. #define BOOST_MOVE_ITER2DLOW_0TOMAX1(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX0(MACROFUNC2D, M) MACROFUNC2D(M, 1)
  765. #define BOOST_MOVE_ITER2DLOW_0TOMAX2(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX1(MACROFUNC2D, M) MACROFUNC2D(M, 2)
  766. #define BOOST_MOVE_ITER2DLOW_0TOMAX3(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX2(MACROFUNC2D, M) MACROFUNC2D(M, 3)
  767. #define BOOST_MOVE_ITER2DLOW_0TOMAX4(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX3(MACROFUNC2D, M) MACROFUNC2D(M, 4)
  768. #define BOOST_MOVE_ITER2DLOW_0TOMAX5(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX4(MACROFUNC2D, M) MACROFUNC2D(M, 5)
  769. #define BOOST_MOVE_ITER2DLOW_0TOMAX6(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX5(MACROFUNC2D, M) MACROFUNC2D(M, 6)
  770. #define BOOST_MOVE_ITER2DLOW_0TOMAX7(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX6(MACROFUNC2D, M) MACROFUNC2D(M, 7)
  771. #define BOOST_MOVE_ITER2DLOW_0TOMAX8(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX7(MACROFUNC2D, M) MACROFUNC2D(M, 8)
  772. #define BOOST_MOVE_ITER2DLOW_0TOMAX9(MACROFUNC2D, M) BOOST_MOVE_ITER2DLOW_0TOMAX8(MACROFUNC2D, M) MACROFUNC2D(M, 9)
  773. #define BOOST_MOVE_ITER2D_0TOMAX0(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 0)
  774. #define BOOST_MOVE_ITER2D_0TOMAX1(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX0(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 1)
  775. #define BOOST_MOVE_ITER2D_0TOMAX2(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX1(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 2)
  776. #define BOOST_MOVE_ITER2D_0TOMAX3(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX2(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 3)
  777. #define BOOST_MOVE_ITER2D_0TOMAX4(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX3(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 4)
  778. #define BOOST_MOVE_ITER2D_0TOMAX5(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX4(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 5)
  779. #define BOOST_MOVE_ITER2D_0TOMAX6(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX5(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 6)
  780. #define BOOST_MOVE_ITER2D_0TOMAX7(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX6(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 7)
  781. #define BOOST_MOVE_ITER2D_0TOMAX8(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX7(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 8)
  782. #define BOOST_MOVE_ITER2D_0TOMAX9(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX8(MAX, MACROFUNC2D) BOOST_MOVE_ITER2DLOW_0TOMAX##MAX(MACROFUNC2D, 9)
  783. #define BOOST_MOVE_ITER2D_0TOMAX(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX_I (MAX, MACROFUNC2D)
  784. #define BOOST_MOVE_ITER2D_0TOMAX_I(MAX, MACROFUNC2D) BOOST_MOVE_ITER2D_0TOMAX##MAX(MAX, MACROFUNC2D)
  785. //BOOST_MOVE_CAT
  786. #define BOOST_MOVE_CAT(a, b) BOOST_MOVE_CAT_I(a, b)
  787. #define BOOST_MOVE_CAT_I(a, b) a ## b
  788. //# define BOOST_MOVE_CAT_I(a, b) BOOST_MOVE_CAT_II(~, a ## b)
  789. //# define BOOST_MOVE_CAT_II(p, res) res
  790. #endif //#ifndef BOOST_MOVE_DETAIL_FWD_MACROS_HPP