| 1 | /*============================================================================== |
| 2 | Copyright (c) 2005-2010 Joel de Guzman |
| 3 | Copyright (c) 2010 Thomas Heller |
| 4 | |
| 5 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | ==============================================================================*/ |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | template <typename This, typename A0 , typename A1, typename Context> |
| 16 | struct result<This(A0 , A1, Context)> |
| 17 | : detail::result_of::target<A0> |
| 18 | { |
| 19 | }; |
| 20 | |
| 21 | template <typename A0 , typename A1, typename Context> |
| 22 | typename detail::result_of::target<A0>::type |
| 23 | operator()( |
| 24 | A0 const& |
| 25 | , A1 const& a1 |
| 26 | , Context const & ctx |
| 27 | ) const |
| 28 | { |
| 29 | return |
| 30 | typename detail::result_of::target<A0>::type( |
| 31 | boost::phoenix::eval(a1, ctx) |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | template <typename This, typename A0 , typename A1 , typename A2, typename Context> |
| 42 | struct result<This(A0 , A1 , A2, Context)> |
| 43 | : detail::result_of::target<A0> |
| 44 | { |
| 45 | }; |
| 46 | |
| 47 | template <typename A0 , typename A1 , typename A2, typename Context> |
| 48 | typename detail::result_of::target<A0>::type |
| 49 | operator()( |
| 50 | A0 const& |
| 51 | , A1 const& a1 , A2 const& a2 |
| 52 | , Context const & ctx |
| 53 | ) const |
| 54 | { |
| 55 | return |
| 56 | typename detail::result_of::target<A0>::type( |
| 57 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) |
| 58 | ); |
| 59 | } |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | template <typename This, typename A0 , typename A1 , typename A2 , typename A3, typename Context> |
| 68 | struct result<This(A0 , A1 , A2 , A3, Context)> |
| 69 | : detail::result_of::target<A0> |
| 70 | { |
| 71 | }; |
| 72 | |
| 73 | template <typename A0 , typename A1 , typename A2 , typename A3, typename Context> |
| 74 | typename detail::result_of::target<A0>::type |
| 75 | operator()( |
| 76 | A0 const& |
| 77 | , A1 const& a1 , A2 const& a2 , A3 const& a3 |
| 78 | , Context const & ctx |
| 79 | ) const |
| 80 | { |
| 81 | return |
| 82 | typename detail::result_of::target<A0>::type( |
| 83 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) |
| 84 | ); |
| 85 | } |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4, typename Context> |
| 94 | struct result<This(A0 , A1 , A2 , A3 , A4, Context)> |
| 95 | : detail::result_of::target<A0> |
| 96 | { |
| 97 | }; |
| 98 | |
| 99 | template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4, typename Context> |
| 100 | typename detail::result_of::target<A0>::type |
| 101 | operator()( |
| 102 | A0 const& |
| 103 | , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 |
| 104 | , Context const & ctx |
| 105 | ) const |
| 106 | { |
| 107 | return |
| 108 | typename detail::result_of::target<A0>::type( |
| 109 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) |
| 110 | ); |
| 111 | } |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5, typename Context> |
| 120 | struct result<This(A0 , A1 , A2 , A3 , A4 , A5, Context)> |
| 121 | : detail::result_of::target<A0> |
| 122 | { |
| 123 | }; |
| 124 | |
| 125 | template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5, typename Context> |
| 126 | typename detail::result_of::target<A0>::type |
| 127 | operator()( |
| 128 | A0 const& |
| 129 | , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 |
| 130 | , Context const & ctx |
| 131 | ) const |
| 132 | { |
| 133 | return |
| 134 | typename detail::result_of::target<A0>::type( |
| 135 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) |
| 136 | ); |
| 137 | } |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6, typename Context> |
| 146 | struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6, Context)> |
| 147 | : detail::result_of::target<A0> |
| 148 | { |
| 149 | }; |
| 150 | |
| 151 | template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6, typename Context> |
| 152 | typename detail::result_of::target<A0>::type |
| 153 | operator()( |
| 154 | A0 const& |
| 155 | , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 |
| 156 | , Context const & ctx |
| 157 | ) const |
| 158 | { |
| 159 | return |
| 160 | typename detail::result_of::target<A0>::type( |
| 161 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx) |
| 162 | ); |
| 163 | } |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7, typename Context> |
| 172 | struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7, Context)> |
| 173 | : detail::result_of::target<A0> |
| 174 | { |
| 175 | }; |
| 176 | |
| 177 | template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7, typename Context> |
| 178 | typename detail::result_of::target<A0>::type |
| 179 | operator()( |
| 180 | A0 const& |
| 181 | , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 |
| 182 | , Context const & ctx |
| 183 | ) const |
| 184 | { |
| 185 | return |
| 186 | typename detail::result_of::target<A0>::type( |
| 187 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx) , boost::phoenix::eval(a7, ctx) |
| 188 | ); |
| 189 | } |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8, typename Context> |
| 198 | struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8, Context)> |
| 199 | : detail::result_of::target<A0> |
| 200 | { |
| 201 | }; |
| 202 | |
| 203 | template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8, typename Context> |
| 204 | typename detail::result_of::target<A0>::type |
| 205 | operator()( |
| 206 | A0 const& |
| 207 | , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8 |
| 208 | , Context const & ctx |
| 209 | ) const |
| 210 | { |
| 211 | return |
| 212 | typename detail::result_of::target<A0>::type( |
| 213 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx) , boost::phoenix::eval(a7, ctx) , boost::phoenix::eval(a8, ctx) |
| 214 | ); |
| 215 | } |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9, typename Context> |
| 224 | struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9, Context)> |
| 225 | : detail::result_of::target<A0> |
| 226 | { |
| 227 | }; |
| 228 | |
| 229 | template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9, typename Context> |
| 230 | typename detail::result_of::target<A0>::type |
| 231 | operator()( |
| 232 | A0 const& |
| 233 | , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8 , A9 const& a9 |
| 234 | , Context const & ctx |
| 235 | ) const |
| 236 | { |
| 237 | return |
| 238 | typename detail::result_of::target<A0>::type( |
| 239 | boost::phoenix::eval(a1, ctx) , boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx) , boost::phoenix::eval(a7, ctx) , boost::phoenix::eval(a8, ctx) , boost::phoenix::eval(a9, ctx) |
| 240 | ); |
| 241 | } |
| 242 | |