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