[857] | 1 | // Copyright (C) 2000 Stephen Cleary
|
---|
| 2 | //
|
---|
| 3 | // Distributed under the Boost Software License, Version 1.0. (See
|
---|
| 4 | // accompanying file LICENSE_1_0.txt or copy at
|
---|
| 5 | // http://www.boost.org/LICENSE_1_0.txt)
|
---|
| 6 | //
|
---|
| 7 | // See http://www.boost.org for updates, documentation, and revision history.
|
---|
| 8 |
|
---|
| 9 | // This file was AUTOMATICALLY GENERATED from "pool_c~1.m4"
|
---|
| 10 | // Do NOT include directly!
|
---|
| 11 | // Do NOT edit!
|
---|
| 12 |
|
---|
| 13 | template <typename T0>
|
---|
| 14 | element_type * construct(T0 & a0)
|
---|
| 15 | {
|
---|
| 16 | element_type * const ret = malloc();
|
---|
| 17 | if (ret == 0)
|
---|
| 18 | return ret;
|
---|
| 19 | try { new (ret) element_type(a0); }
|
---|
| 20 | catch (...) { free(ret); throw; }
|
---|
| 21 | return ret;
|
---|
| 22 | }
|
---|
| 23 | template <typename T0>
|
---|
| 24 | element_type * construct(const T0 & a0)
|
---|
| 25 | {
|
---|
| 26 | element_type * const ret = malloc();
|
---|
| 27 | if (ret == 0)
|
---|
| 28 | return ret;
|
---|
| 29 | try { new (ret) element_type(a0); }
|
---|
| 30 | catch (...) { free(ret); throw; }
|
---|
| 31 | return ret;
|
---|
| 32 | }
|
---|
| 33 | template <typename T0>
|
---|
| 34 | element_type * construct(volatile T0 & a0)
|
---|
| 35 | {
|
---|
| 36 | element_type * const ret = malloc();
|
---|
| 37 | if (ret == 0)
|
---|
| 38 | return ret;
|
---|
| 39 | try { new (ret) element_type(a0); }
|
---|
| 40 | catch (...) { free(ret); throw; }
|
---|
| 41 | return ret;
|
---|
| 42 | }
|
---|
| 43 | template <typename T0>
|
---|
| 44 | element_type * construct(const volatile T0 & a0)
|
---|
| 45 | {
|
---|
| 46 | element_type * const ret = malloc();
|
---|
| 47 | if (ret == 0)
|
---|
| 48 | return ret;
|
---|
| 49 | try { new (ret) element_type(a0); }
|
---|
| 50 | catch (...) { free(ret); throw; }
|
---|
| 51 | return ret;
|
---|
| 52 | }
|
---|
| 53 | template <typename T0, typename T1>
|
---|
| 54 | element_type * construct(T0 & a0, T1 & a1)
|
---|
| 55 | {
|
---|
| 56 | element_type * const ret = malloc();
|
---|
| 57 | if (ret == 0)
|
---|
| 58 | return ret;
|
---|
| 59 | try { new (ret) element_type(a0, a1); }
|
---|
| 60 | catch (...) { free(ret); throw; }
|
---|
| 61 | return ret;
|
---|
| 62 | }
|
---|
| 63 | template <typename T0, typename T1>
|
---|
| 64 | element_type * construct(const T0 & a0, T1 & a1)
|
---|
| 65 | {
|
---|
| 66 | element_type * const ret = malloc();
|
---|
| 67 | if (ret == 0)
|
---|
| 68 | return ret;
|
---|
| 69 | try { new (ret) element_type(a0, a1); }
|
---|
| 70 | catch (...) { free(ret); throw; }
|
---|
| 71 | return ret;
|
---|
| 72 | }
|
---|
| 73 | template <typename T0, typename T1>
|
---|
| 74 | element_type * construct(volatile T0 & a0, T1 & a1)
|
---|
| 75 | {
|
---|
| 76 | element_type * const ret = malloc();
|
---|
| 77 | if (ret == 0)
|
---|
| 78 | return ret;
|
---|
| 79 | try { new (ret) element_type(a0, a1); }
|
---|
| 80 | catch (...) { free(ret); throw; }
|
---|
| 81 | return ret;
|
---|
| 82 | }
|
---|
| 83 | template <typename T0, typename T1>
|
---|
| 84 | element_type * construct(const volatile T0 & a0, T1 & a1)
|
---|
| 85 | {
|
---|
| 86 | element_type * const ret = malloc();
|
---|
| 87 | if (ret == 0)
|
---|
| 88 | return ret;
|
---|
| 89 | try { new (ret) element_type(a0, a1); }
|
---|
| 90 | catch (...) { free(ret); throw; }
|
---|
| 91 | return ret;
|
---|
| 92 | }
|
---|
| 93 | template <typename T0, typename T1>
|
---|
| 94 | element_type * construct(T0 & a0, const T1 & a1)
|
---|
| 95 | {
|
---|
| 96 | element_type * const ret = malloc();
|
---|
| 97 | if (ret == 0)
|
---|
| 98 | return ret;
|
---|
| 99 | try { new (ret) element_type(a0, a1); }
|
---|
| 100 | catch (...) { free(ret); throw; }
|
---|
| 101 | return ret;
|
---|
| 102 | }
|
---|
| 103 | template <typename T0, typename T1>
|
---|
| 104 | element_type * construct(const T0 & a0, const T1 & a1)
|
---|
| 105 | {
|
---|
| 106 | element_type * const ret = malloc();
|
---|
| 107 | if (ret == 0)
|
---|
| 108 | return ret;
|
---|
| 109 | try { new (ret) element_type(a0, a1); }
|
---|
| 110 | catch (...) { free(ret); throw; }
|
---|
| 111 | return ret;
|
---|
| 112 | }
|
---|
| 113 | template <typename T0, typename T1>
|
---|
| 114 | element_type * construct(volatile T0 & a0, const T1 & a1)
|
---|
| 115 | {
|
---|
| 116 | element_type * const ret = malloc();
|
---|
| 117 | if (ret == 0)
|
---|
| 118 | return ret;
|
---|
| 119 | try { new (ret) element_type(a0, a1); }
|
---|
| 120 | catch (...) { free(ret); throw; }
|
---|
| 121 | return ret;
|
---|
| 122 | }
|
---|
| 123 | template <typename T0, typename T1>
|
---|
| 124 | element_type * construct(const volatile T0 & a0, const T1 & a1)
|
---|
| 125 | {
|
---|
| 126 | element_type * const ret = malloc();
|
---|
| 127 | if (ret == 0)
|
---|
| 128 | return ret;
|
---|
| 129 | try { new (ret) element_type(a0, a1); }
|
---|
| 130 | catch (...) { free(ret); throw; }
|
---|
| 131 | return ret;
|
---|
| 132 | }
|
---|
| 133 | template <typename T0, typename T1>
|
---|
| 134 | element_type * construct(T0 & a0, volatile T1 & a1)
|
---|
| 135 | {
|
---|
| 136 | element_type * const ret = malloc();
|
---|
| 137 | if (ret == 0)
|
---|
| 138 | return ret;
|
---|
| 139 | try { new (ret) element_type(a0, a1); }
|
---|
| 140 | catch (...) { free(ret); throw; }
|
---|
| 141 | return ret;
|
---|
| 142 | }
|
---|
| 143 | template <typename T0, typename T1>
|
---|
| 144 | element_type * construct(const T0 & a0, volatile T1 & a1)
|
---|
| 145 | {
|
---|
| 146 | element_type * const ret = malloc();
|
---|
| 147 | if (ret == 0)
|
---|
| 148 | return ret;
|
---|
| 149 | try { new (ret) element_type(a0, a1); }
|
---|
| 150 | catch (...) { free(ret); throw; }
|
---|
| 151 | return ret;
|
---|
| 152 | }
|
---|
| 153 | template <typename T0, typename T1>
|
---|
| 154 | element_type * construct(volatile T0 & a0, volatile T1 & a1)
|
---|
| 155 | {
|
---|
| 156 | element_type * const ret = malloc();
|
---|
| 157 | if (ret == 0)
|
---|
| 158 | return ret;
|
---|
| 159 | try { new (ret) element_type(a0, a1); }
|
---|
| 160 | catch (...) { free(ret); throw; }
|
---|
| 161 | return ret;
|
---|
| 162 | }
|
---|
| 163 | template <typename T0, typename T1>
|
---|
| 164 | element_type * construct(const volatile T0 & a0, volatile T1 & a1)
|
---|
| 165 | {
|
---|
| 166 | element_type * const ret = malloc();
|
---|
| 167 | if (ret == 0)
|
---|
| 168 | return ret;
|
---|
| 169 | try { new (ret) element_type(a0, a1); }
|
---|
| 170 | catch (...) { free(ret); throw; }
|
---|
| 171 | return ret;
|
---|
| 172 | }
|
---|
| 173 | template <typename T0, typename T1>
|
---|
| 174 | element_type * construct(T0 & a0, const volatile T1 & a1)
|
---|
| 175 | {
|
---|
| 176 | element_type * const ret = malloc();
|
---|
| 177 | if (ret == 0)
|
---|
| 178 | return ret;
|
---|
| 179 | try { new (ret) element_type(a0, a1); }
|
---|
| 180 | catch (...) { free(ret); throw; }
|
---|
| 181 | return ret;
|
---|
| 182 | }
|
---|
| 183 | template <typename T0, typename T1>
|
---|
| 184 | element_type * construct(const T0 & a0, const volatile T1 & a1)
|
---|
| 185 | {
|
---|
| 186 | element_type * const ret = malloc();
|
---|
| 187 | if (ret == 0)
|
---|
| 188 | return ret;
|
---|
| 189 | try { new (ret) element_type(a0, a1); }
|
---|
| 190 | catch (...) { free(ret); throw; }
|
---|
| 191 | return ret;
|
---|
| 192 | }
|
---|
| 193 | template <typename T0, typename T1>
|
---|
| 194 | element_type * construct(volatile T0 & a0, const volatile T1 & a1)
|
---|
| 195 | {
|
---|
| 196 | element_type * const ret = malloc();
|
---|
| 197 | if (ret == 0)
|
---|
| 198 | return ret;
|
---|
| 199 | try { new (ret) element_type(a0, a1); }
|
---|
| 200 | catch (...) { free(ret); throw; }
|
---|
| 201 | return ret;
|
---|
| 202 | }
|
---|
| 203 | template <typename T0, typename T1>
|
---|
| 204 | element_type * construct(const volatile T0 & a0, const volatile T1 & a1)
|
---|
| 205 | {
|
---|
| 206 | element_type * const ret = malloc();
|
---|
| 207 | if (ret == 0)
|
---|
| 208 | return ret;
|
---|
| 209 | try { new (ret) element_type(a0, a1); }
|
---|
| 210 | catch (...) { free(ret); throw; }
|
---|
| 211 | return ret;
|
---|
| 212 | }
|
---|
| 213 | template <typename T0, typename T1, typename T2>
|
---|
| 214 | element_type * construct(T0 & a0, T1 & a1, T2 & a2)
|
---|
| 215 | {
|
---|
| 216 | element_type * const ret = malloc();
|
---|
| 217 | if (ret == 0)
|
---|
| 218 | return ret;
|
---|
| 219 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 220 | catch (...) { free(ret); throw; }
|
---|
| 221 | return ret;
|
---|
| 222 | }
|
---|
| 223 | template <typename T0, typename T1, typename T2>
|
---|
| 224 | element_type * construct(const T0 & a0, T1 & a1, T2 & a2)
|
---|
| 225 | {
|
---|
| 226 | element_type * const ret = malloc();
|
---|
| 227 | if (ret == 0)
|
---|
| 228 | return ret;
|
---|
| 229 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 230 | catch (...) { free(ret); throw; }
|
---|
| 231 | return ret;
|
---|
| 232 | }
|
---|
| 233 | template <typename T0, typename T1, typename T2>
|
---|
| 234 | element_type * construct(volatile T0 & a0, T1 & a1, T2 & a2)
|
---|
| 235 | {
|
---|
| 236 | element_type * const ret = malloc();
|
---|
| 237 | if (ret == 0)
|
---|
| 238 | return ret;
|
---|
| 239 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 240 | catch (...) { free(ret); throw; }
|
---|
| 241 | return ret;
|
---|
| 242 | }
|
---|
| 243 | template <typename T0, typename T1, typename T2>
|
---|
| 244 | element_type * construct(const volatile T0 & a0, T1 & a1, T2 & a2)
|
---|
| 245 | {
|
---|
| 246 | element_type * const ret = malloc();
|
---|
| 247 | if (ret == 0)
|
---|
| 248 | return ret;
|
---|
| 249 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 250 | catch (...) { free(ret); throw; }
|
---|
| 251 | return ret;
|
---|
| 252 | }
|
---|
| 253 | template <typename T0, typename T1, typename T2>
|
---|
| 254 | element_type * construct(T0 & a0, const T1 & a1, T2 & a2)
|
---|
| 255 | {
|
---|
| 256 | element_type * const ret = malloc();
|
---|
| 257 | if (ret == 0)
|
---|
| 258 | return ret;
|
---|
| 259 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 260 | catch (...) { free(ret); throw; }
|
---|
| 261 | return ret;
|
---|
| 262 | }
|
---|
| 263 | template <typename T0, typename T1, typename T2>
|
---|
| 264 | element_type * construct(const T0 & a0, const T1 & a1, T2 & a2)
|
---|
| 265 | {
|
---|
| 266 | element_type * const ret = malloc();
|
---|
| 267 | if (ret == 0)
|
---|
| 268 | return ret;
|
---|
| 269 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 270 | catch (...) { free(ret); throw; }
|
---|
| 271 | return ret;
|
---|
| 272 | }
|
---|
| 273 | template <typename T0, typename T1, typename T2>
|
---|
| 274 | element_type * construct(volatile T0 & a0, const T1 & a1, T2 & a2)
|
---|
| 275 | {
|
---|
| 276 | element_type * const ret = malloc();
|
---|
| 277 | if (ret == 0)
|
---|
| 278 | return ret;
|
---|
| 279 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 280 | catch (...) { free(ret); throw; }
|
---|
| 281 | return ret;
|
---|
| 282 | }
|
---|
| 283 | template <typename T0, typename T1, typename T2>
|
---|
| 284 | element_type * construct(const volatile T0 & a0, const T1 & a1, T2 & a2)
|
---|
| 285 | {
|
---|
| 286 | element_type * const ret = malloc();
|
---|
| 287 | if (ret == 0)
|
---|
| 288 | return ret;
|
---|
| 289 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 290 | catch (...) { free(ret); throw; }
|
---|
| 291 | return ret;
|
---|
| 292 | }
|
---|
| 293 | template <typename T0, typename T1, typename T2>
|
---|
| 294 | element_type * construct(T0 & a0, volatile T1 & a1, T2 & a2)
|
---|
| 295 | {
|
---|
| 296 | element_type * const ret = malloc();
|
---|
| 297 | if (ret == 0)
|
---|
| 298 | return ret;
|
---|
| 299 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 300 | catch (...) { free(ret); throw; }
|
---|
| 301 | return ret;
|
---|
| 302 | }
|
---|
| 303 | template <typename T0, typename T1, typename T2>
|
---|
| 304 | element_type * construct(const T0 & a0, volatile T1 & a1, T2 & a2)
|
---|
| 305 | {
|
---|
| 306 | element_type * const ret = malloc();
|
---|
| 307 | if (ret == 0)
|
---|
| 308 | return ret;
|
---|
| 309 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 310 | catch (...) { free(ret); throw; }
|
---|
| 311 | return ret;
|
---|
| 312 | }
|
---|
| 313 | template <typename T0, typename T1, typename T2>
|
---|
| 314 | element_type * construct(volatile T0 & a0, volatile T1 & a1, T2 & a2)
|
---|
| 315 | {
|
---|
| 316 | element_type * const ret = malloc();
|
---|
| 317 | if (ret == 0)
|
---|
| 318 | return ret;
|
---|
| 319 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 320 | catch (...) { free(ret); throw; }
|
---|
| 321 | return ret;
|
---|
| 322 | }
|
---|
| 323 | template <typename T0, typename T1, typename T2>
|
---|
| 324 | element_type * construct(const volatile T0 & a0, volatile T1 & a1, T2 & a2)
|
---|
| 325 | {
|
---|
| 326 | element_type * const ret = malloc();
|
---|
| 327 | if (ret == 0)
|
---|
| 328 | return ret;
|
---|
| 329 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 330 | catch (...) { free(ret); throw; }
|
---|
| 331 | return ret;
|
---|
| 332 | }
|
---|
| 333 | template <typename T0, typename T1, typename T2>
|
---|
| 334 | element_type * construct(T0 & a0, const volatile T1 & a1, T2 & a2)
|
---|
| 335 | {
|
---|
| 336 | element_type * const ret = malloc();
|
---|
| 337 | if (ret == 0)
|
---|
| 338 | return ret;
|
---|
| 339 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 340 | catch (...) { free(ret); throw; }
|
---|
| 341 | return ret;
|
---|
| 342 | }
|
---|
| 343 | template <typename T0, typename T1, typename T2>
|
---|
| 344 | element_type * construct(const T0 & a0, const volatile T1 & a1, T2 & a2)
|
---|
| 345 | {
|
---|
| 346 | element_type * const ret = malloc();
|
---|
| 347 | if (ret == 0)
|
---|
| 348 | return ret;
|
---|
| 349 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 350 | catch (...) { free(ret); throw; }
|
---|
| 351 | return ret;
|
---|
| 352 | }
|
---|
| 353 | template <typename T0, typename T1, typename T2>
|
---|
| 354 | element_type * construct(volatile T0 & a0, const volatile T1 & a1, T2 & a2)
|
---|
| 355 | {
|
---|
| 356 | element_type * const ret = malloc();
|
---|
| 357 | if (ret == 0)
|
---|
| 358 | return ret;
|
---|
| 359 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 360 | catch (...) { free(ret); throw; }
|
---|
| 361 | return ret;
|
---|
| 362 | }
|
---|
| 363 | template <typename T0, typename T1, typename T2>
|
---|
| 364 | element_type * construct(const volatile T0 & a0, const volatile T1 & a1, T2 & a2)
|
---|
| 365 | {
|
---|
| 366 | element_type * const ret = malloc();
|
---|
| 367 | if (ret == 0)
|
---|
| 368 | return ret;
|
---|
| 369 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 370 | catch (...) { free(ret); throw; }
|
---|
| 371 | return ret;
|
---|
| 372 | }
|
---|
| 373 | template <typename T0, typename T1, typename T2>
|
---|
| 374 | element_type * construct(T0 & a0, T1 & a1, const T2 & a2)
|
---|
| 375 | {
|
---|
| 376 | element_type * const ret = malloc();
|
---|
| 377 | if (ret == 0)
|
---|
| 378 | return ret;
|
---|
| 379 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 380 | catch (...) { free(ret); throw; }
|
---|
| 381 | return ret;
|
---|
| 382 | }
|
---|
| 383 | template <typename T0, typename T1, typename T2>
|
---|
| 384 | element_type * construct(const T0 & a0, T1 & a1, const T2 & a2)
|
---|
| 385 | {
|
---|
| 386 | element_type * const ret = malloc();
|
---|
| 387 | if (ret == 0)
|
---|
| 388 | return ret;
|
---|
| 389 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 390 | catch (...) { free(ret); throw; }
|
---|
| 391 | return ret;
|
---|
| 392 | }
|
---|
| 393 | template <typename T0, typename T1, typename T2>
|
---|
| 394 | element_type * construct(volatile T0 & a0, T1 & a1, const T2 & a2)
|
---|
| 395 | {
|
---|
| 396 | element_type * const ret = malloc();
|
---|
| 397 | if (ret == 0)
|
---|
| 398 | return ret;
|
---|
| 399 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 400 | catch (...) { free(ret); throw; }
|
---|
| 401 | return ret;
|
---|
| 402 | }
|
---|
| 403 | template <typename T0, typename T1, typename T2>
|
---|
| 404 | element_type * construct(const volatile T0 & a0, T1 & a1, const T2 & a2)
|
---|
| 405 | {
|
---|
| 406 | element_type * const ret = malloc();
|
---|
| 407 | if (ret == 0)
|
---|
| 408 | return ret;
|
---|
| 409 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 410 | catch (...) { free(ret); throw; }
|
---|
| 411 | return ret;
|
---|
| 412 | }
|
---|
| 413 | template <typename T0, typename T1, typename T2>
|
---|
| 414 | element_type * construct(T0 & a0, const T1 & a1, const T2 & a2)
|
---|
| 415 | {
|
---|
| 416 | element_type * const ret = malloc();
|
---|
| 417 | if (ret == 0)
|
---|
| 418 | return ret;
|
---|
| 419 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 420 | catch (...) { free(ret); throw; }
|
---|
| 421 | return ret;
|
---|
| 422 | }
|
---|
| 423 | template <typename T0, typename T1, typename T2>
|
---|
| 424 | element_type * construct(const T0 & a0, const T1 & a1, const T2 & a2)
|
---|
| 425 | {
|
---|
| 426 | element_type * const ret = malloc();
|
---|
| 427 | if (ret == 0)
|
---|
| 428 | return ret;
|
---|
| 429 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 430 | catch (...) { free(ret); throw; }
|
---|
| 431 | return ret;
|
---|
| 432 | }
|
---|
| 433 | template <typename T0, typename T1, typename T2>
|
---|
| 434 | element_type * construct(volatile T0 & a0, const T1 & a1, const T2 & a2)
|
---|
| 435 | {
|
---|
| 436 | element_type * const ret = malloc();
|
---|
| 437 | if (ret == 0)
|
---|
| 438 | return ret;
|
---|
| 439 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 440 | catch (...) { free(ret); throw; }
|
---|
| 441 | return ret;
|
---|
| 442 | }
|
---|
| 443 | template <typename T0, typename T1, typename T2>
|
---|
| 444 | element_type * construct(const volatile T0 & a0, const T1 & a1, const T2 & a2)
|
---|
| 445 | {
|
---|
| 446 | element_type * const ret = malloc();
|
---|
| 447 | if (ret == 0)
|
---|
| 448 | return ret;
|
---|
| 449 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 450 | catch (...) { free(ret); throw; }
|
---|
| 451 | return ret;
|
---|
| 452 | }
|
---|
| 453 | template <typename T0, typename T1, typename T2>
|
---|
| 454 | element_type * construct(T0 & a0, volatile T1 & a1, const T2 & a2)
|
---|
| 455 | {
|
---|
| 456 | element_type * const ret = malloc();
|
---|
| 457 | if (ret == 0)
|
---|
| 458 | return ret;
|
---|
| 459 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 460 | catch (...) { free(ret); throw; }
|
---|
| 461 | return ret;
|
---|
| 462 | }
|
---|
| 463 | template <typename T0, typename T1, typename T2>
|
---|
| 464 | element_type * construct(const T0 & a0, volatile T1 & a1, const T2 & a2)
|
---|
| 465 | {
|
---|
| 466 | element_type * const ret = malloc();
|
---|
| 467 | if (ret == 0)
|
---|
| 468 | return ret;
|
---|
| 469 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 470 | catch (...) { free(ret); throw; }
|
---|
| 471 | return ret;
|
---|
| 472 | }
|
---|
| 473 | template <typename T0, typename T1, typename T2>
|
---|
| 474 | element_type * construct(volatile T0 & a0, volatile T1 & a1, const T2 & a2)
|
---|
| 475 | {
|
---|
| 476 | element_type * const ret = malloc();
|
---|
| 477 | if (ret == 0)
|
---|
| 478 | return ret;
|
---|
| 479 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 480 | catch (...) { free(ret); throw; }
|
---|
| 481 | return ret;
|
---|
| 482 | }
|
---|
| 483 | template <typename T0, typename T1, typename T2>
|
---|
| 484 | element_type * construct(const volatile T0 & a0, volatile T1 & a1, const T2 & a2)
|
---|
| 485 | {
|
---|
| 486 | element_type * const ret = malloc();
|
---|
| 487 | if (ret == 0)
|
---|
| 488 | return ret;
|
---|
| 489 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 490 | catch (...) { free(ret); throw; }
|
---|
| 491 | return ret;
|
---|
| 492 | }
|
---|
| 493 | template <typename T0, typename T1, typename T2>
|
---|
| 494 | element_type * construct(T0 & a0, const volatile T1 & a1, const T2 & a2)
|
---|
| 495 | {
|
---|
| 496 | element_type * const ret = malloc();
|
---|
| 497 | if (ret == 0)
|
---|
| 498 | return ret;
|
---|
| 499 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 500 | catch (...) { free(ret); throw; }
|
---|
| 501 | return ret;
|
---|
| 502 | }
|
---|
| 503 | template <typename T0, typename T1, typename T2>
|
---|
| 504 | element_type * construct(const T0 & a0, const volatile T1 & a1, const T2 & a2)
|
---|
| 505 | {
|
---|
| 506 | element_type * const ret = malloc();
|
---|
| 507 | if (ret == 0)
|
---|
| 508 | return ret;
|
---|
| 509 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 510 | catch (...) { free(ret); throw; }
|
---|
| 511 | return ret;
|
---|
| 512 | }
|
---|
| 513 | template <typename T0, typename T1, typename T2>
|
---|
| 514 | element_type * construct(volatile T0 & a0, const volatile T1 & a1, const T2 & a2)
|
---|
| 515 | {
|
---|
| 516 | element_type * const ret = malloc();
|
---|
| 517 | if (ret == 0)
|
---|
| 518 | return ret;
|
---|
| 519 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 520 | catch (...) { free(ret); throw; }
|
---|
| 521 | return ret;
|
---|
| 522 | }
|
---|
| 523 | template <typename T0, typename T1, typename T2>
|
---|
| 524 | element_type * construct(const volatile T0 & a0, const volatile T1 & a1, const T2 & a2)
|
---|
| 525 | {
|
---|
| 526 | element_type * const ret = malloc();
|
---|
| 527 | if (ret == 0)
|
---|
| 528 | return ret;
|
---|
| 529 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 530 | catch (...) { free(ret); throw; }
|
---|
| 531 | return ret;
|
---|
| 532 | }
|
---|
| 533 | template <typename T0, typename T1, typename T2>
|
---|
| 534 | element_type * construct(T0 & a0, T1 & a1, volatile T2 & a2)
|
---|
| 535 | {
|
---|
| 536 | element_type * const ret = malloc();
|
---|
| 537 | if (ret == 0)
|
---|
| 538 | return ret;
|
---|
| 539 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 540 | catch (...) { free(ret); throw; }
|
---|
| 541 | return ret;
|
---|
| 542 | }
|
---|
| 543 | template <typename T0, typename T1, typename T2>
|
---|
| 544 | element_type * construct(const T0 & a0, T1 & a1, volatile T2 & a2)
|
---|
| 545 | {
|
---|
| 546 | element_type * const ret = malloc();
|
---|
| 547 | if (ret == 0)
|
---|
| 548 | return ret;
|
---|
| 549 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 550 | catch (...) { free(ret); throw; }
|
---|
| 551 | return ret;
|
---|
| 552 | }
|
---|
| 553 | template <typename T0, typename T1, typename T2>
|
---|
| 554 | element_type * construct(volatile T0 & a0, T1 & a1, volatile T2 & a2)
|
---|
| 555 | {
|
---|
| 556 | element_type * const ret = malloc();
|
---|
| 557 | if (ret == 0)
|
---|
| 558 | return ret;
|
---|
| 559 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 560 | catch (...) { free(ret); throw; }
|
---|
| 561 | return ret;
|
---|
| 562 | }
|
---|
| 563 | template <typename T0, typename T1, typename T2>
|
---|
| 564 | element_type * construct(const volatile T0 & a0, T1 & a1, volatile T2 & a2)
|
---|
| 565 | {
|
---|
| 566 | element_type * const ret = malloc();
|
---|
| 567 | if (ret == 0)
|
---|
| 568 | return ret;
|
---|
| 569 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 570 | catch (...) { free(ret); throw; }
|
---|
| 571 | return ret;
|
---|
| 572 | }
|
---|
| 573 | template <typename T0, typename T1, typename T2>
|
---|
| 574 | element_type * construct(T0 & a0, const T1 & a1, volatile T2 & a2)
|
---|
| 575 | {
|
---|
| 576 | element_type * const ret = malloc();
|
---|
| 577 | if (ret == 0)
|
---|
| 578 | return ret;
|
---|
| 579 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 580 | catch (...) { free(ret); throw; }
|
---|
| 581 | return ret;
|
---|
| 582 | }
|
---|
| 583 | template <typename T0, typename T1, typename T2>
|
---|
| 584 | element_type * construct(const T0 & a0, const T1 & a1, volatile T2 & a2)
|
---|
| 585 | {
|
---|
| 586 | element_type * const ret = malloc();
|
---|
| 587 | if (ret == 0)
|
---|
| 588 | return ret;
|
---|
| 589 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 590 | catch (...) { free(ret); throw; }
|
---|
| 591 | return ret;
|
---|
| 592 | }
|
---|
| 593 | template <typename T0, typename T1, typename T2>
|
---|
| 594 | element_type * construct(volatile T0 & a0, const T1 & a1, volatile T2 & a2)
|
---|
| 595 | {
|
---|
| 596 | element_type * const ret = malloc();
|
---|
| 597 | if (ret == 0)
|
---|
| 598 | return ret;
|
---|
| 599 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 600 | catch (...) { free(ret); throw; }
|
---|
| 601 | return ret;
|
---|
| 602 | }
|
---|
| 603 | template <typename T0, typename T1, typename T2>
|
---|
| 604 | element_type * construct(const volatile T0 & a0, const T1 & a1, volatile T2 & a2)
|
---|
| 605 | {
|
---|
| 606 | element_type * const ret = malloc();
|
---|
| 607 | if (ret == 0)
|
---|
| 608 | return ret;
|
---|
| 609 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 610 | catch (...) { free(ret); throw; }
|
---|
| 611 | return ret;
|
---|
| 612 | }
|
---|
| 613 | template <typename T0, typename T1, typename T2>
|
---|
| 614 | element_type * construct(T0 & a0, volatile T1 & a1, volatile T2 & a2)
|
---|
| 615 | {
|
---|
| 616 | element_type * const ret = malloc();
|
---|
| 617 | if (ret == 0)
|
---|
| 618 | return ret;
|
---|
| 619 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 620 | catch (...) { free(ret); throw; }
|
---|
| 621 | return ret;
|
---|
| 622 | }
|
---|
| 623 | template <typename T0, typename T1, typename T2>
|
---|
| 624 | element_type * construct(const T0 & a0, volatile T1 & a1, volatile T2 & a2)
|
---|
| 625 | {
|
---|
| 626 | element_type * const ret = malloc();
|
---|
| 627 | if (ret == 0)
|
---|
| 628 | return ret;
|
---|
| 629 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 630 | catch (...) { free(ret); throw; }
|
---|
| 631 | return ret;
|
---|
| 632 | }
|
---|
| 633 | template <typename T0, typename T1, typename T2>
|
---|
| 634 | element_type * construct(volatile T0 & a0, volatile T1 & a1, volatile T2 & a2)
|
---|
| 635 | {
|
---|
| 636 | element_type * const ret = malloc();
|
---|
| 637 | if (ret == 0)
|
---|
| 638 | return ret;
|
---|
| 639 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 640 | catch (...) { free(ret); throw; }
|
---|
| 641 | return ret;
|
---|
| 642 | }
|
---|
| 643 | template <typename T0, typename T1, typename T2>
|
---|
| 644 | element_type * construct(const volatile T0 & a0, volatile T1 & a1, volatile T2 & a2)
|
---|
| 645 | {
|
---|
| 646 | element_type * const ret = malloc();
|
---|
| 647 | if (ret == 0)
|
---|
| 648 | return ret;
|
---|
| 649 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 650 | catch (...) { free(ret); throw; }
|
---|
| 651 | return ret;
|
---|
| 652 | }
|
---|
| 653 | template <typename T0, typename T1, typename T2>
|
---|
| 654 | element_type * construct(T0 & a0, const volatile T1 & a1, volatile T2 & a2)
|
---|
| 655 | {
|
---|
| 656 | element_type * const ret = malloc();
|
---|
| 657 | if (ret == 0)
|
---|
| 658 | return ret;
|
---|
| 659 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 660 | catch (...) { free(ret); throw; }
|
---|
| 661 | return ret;
|
---|
| 662 | }
|
---|
| 663 | template <typename T0, typename T1, typename T2>
|
---|
| 664 | element_type * construct(const T0 & a0, const volatile T1 & a1, volatile T2 & a2)
|
---|
| 665 | {
|
---|
| 666 | element_type * const ret = malloc();
|
---|
| 667 | if (ret == 0)
|
---|
| 668 | return ret;
|
---|
| 669 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 670 | catch (...) { free(ret); throw; }
|
---|
| 671 | return ret;
|
---|
| 672 | }
|
---|
| 673 | template <typename T0, typename T1, typename T2>
|
---|
| 674 | element_type * construct(volatile T0 & a0, const volatile T1 & a1, volatile T2 & a2)
|
---|
| 675 | {
|
---|
| 676 | element_type * const ret = malloc();
|
---|
| 677 | if (ret == 0)
|
---|
| 678 | return ret;
|
---|
| 679 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 680 | catch (...) { free(ret); throw; }
|
---|
| 681 | return ret;
|
---|
| 682 | }
|
---|
| 683 | template <typename T0, typename T1, typename T2>
|
---|
| 684 | element_type * construct(const volatile T0 & a0, const volatile T1 & a1, volatile T2 & a2)
|
---|
| 685 | {
|
---|
| 686 | element_type * const ret = malloc();
|
---|
| 687 | if (ret == 0)
|
---|
| 688 | return ret;
|
---|
| 689 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 690 | catch (...) { free(ret); throw; }
|
---|
| 691 | return ret;
|
---|
| 692 | }
|
---|
| 693 | template <typename T0, typename T1, typename T2>
|
---|
| 694 | element_type * construct(T0 & a0, T1 & a1, const volatile T2 & a2)
|
---|
| 695 | {
|
---|
| 696 | element_type * const ret = malloc();
|
---|
| 697 | if (ret == 0)
|
---|
| 698 | return ret;
|
---|
| 699 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 700 | catch (...) { free(ret); throw; }
|
---|
| 701 | return ret;
|
---|
| 702 | }
|
---|
| 703 | template <typename T0, typename T1, typename T2>
|
---|
| 704 | element_type * construct(const T0 & a0, T1 & a1, const volatile T2 & a2)
|
---|
| 705 | {
|
---|
| 706 | element_type * const ret = malloc();
|
---|
| 707 | if (ret == 0)
|
---|
| 708 | return ret;
|
---|
| 709 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 710 | catch (...) { free(ret); throw; }
|
---|
| 711 | return ret;
|
---|
| 712 | }
|
---|
| 713 | template <typename T0, typename T1, typename T2>
|
---|
| 714 | element_type * construct(volatile T0 & a0, T1 & a1, const volatile T2 & a2)
|
---|
| 715 | {
|
---|
| 716 | element_type * const ret = malloc();
|
---|
| 717 | if (ret == 0)
|
---|
| 718 | return ret;
|
---|
| 719 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 720 | catch (...) { free(ret); throw; }
|
---|
| 721 | return ret;
|
---|
| 722 | }
|
---|
| 723 | template <typename T0, typename T1, typename T2>
|
---|
| 724 | element_type * construct(const volatile T0 & a0, T1 & a1, const volatile T2 & a2)
|
---|
| 725 | {
|
---|
| 726 | element_type * const ret = malloc();
|
---|
| 727 | if (ret == 0)
|
---|
| 728 | return ret;
|
---|
| 729 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 730 | catch (...) { free(ret); throw; }
|
---|
| 731 | return ret;
|
---|
| 732 | }
|
---|
| 733 | template <typename T0, typename T1, typename T2>
|
---|
| 734 | element_type * construct(T0 & a0, const T1 & a1, const volatile T2 & a2)
|
---|
| 735 | {
|
---|
| 736 | element_type * const ret = malloc();
|
---|
| 737 | if (ret == 0)
|
---|
| 738 | return ret;
|
---|
| 739 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 740 | catch (...) { free(ret); throw; }
|
---|
| 741 | return ret;
|
---|
| 742 | }
|
---|
| 743 | template <typename T0, typename T1, typename T2>
|
---|
| 744 | element_type * construct(const T0 & a0, const T1 & a1, const volatile T2 & a2)
|
---|
| 745 | {
|
---|
| 746 | element_type * const ret = malloc();
|
---|
| 747 | if (ret == 0)
|
---|
| 748 | return ret;
|
---|
| 749 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 750 | catch (...) { free(ret); throw; }
|
---|
| 751 | return ret;
|
---|
| 752 | }
|
---|
| 753 | template <typename T0, typename T1, typename T2>
|
---|
| 754 | element_type * construct(volatile T0 & a0, const T1 & a1, const volatile T2 & a2)
|
---|
| 755 | {
|
---|
| 756 | element_type * const ret = malloc();
|
---|
| 757 | if (ret == 0)
|
---|
| 758 | return ret;
|
---|
| 759 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 760 | catch (...) { free(ret); throw; }
|
---|
| 761 | return ret;
|
---|
| 762 | }
|
---|
| 763 | template <typename T0, typename T1, typename T2>
|
---|
| 764 | element_type * construct(const volatile T0 & a0, const T1 & a1, const volatile T2 & a2)
|
---|
| 765 | {
|
---|
| 766 | element_type * const ret = malloc();
|
---|
| 767 | if (ret == 0)
|
---|
| 768 | return ret;
|
---|
| 769 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 770 | catch (...) { free(ret); throw; }
|
---|
| 771 | return ret;
|
---|
| 772 | }
|
---|
| 773 | template <typename T0, typename T1, typename T2>
|
---|
| 774 | element_type * construct(T0 & a0, volatile T1 & a1, const volatile T2 & a2)
|
---|
| 775 | {
|
---|
| 776 | element_type * const ret = malloc();
|
---|
| 777 | if (ret == 0)
|
---|
| 778 | return ret;
|
---|
| 779 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 780 | catch (...) { free(ret); throw; }
|
---|
| 781 | return ret;
|
---|
| 782 | }
|
---|
| 783 | template <typename T0, typename T1, typename T2>
|
---|
| 784 | element_type * construct(const T0 & a0, volatile T1 & a1, const volatile T2 & a2)
|
---|
| 785 | {
|
---|
| 786 | element_type * const ret = malloc();
|
---|
| 787 | if (ret == 0)
|
---|
| 788 | return ret;
|
---|
| 789 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 790 | catch (...) { free(ret); throw; }
|
---|
| 791 | return ret;
|
---|
| 792 | }
|
---|
| 793 | template <typename T0, typename T1, typename T2>
|
---|
| 794 | element_type * construct(volatile T0 & a0, volatile T1 & a1, const volatile T2 & a2)
|
---|
| 795 | {
|
---|
| 796 | element_type * const ret = malloc();
|
---|
| 797 | if (ret == 0)
|
---|
| 798 | return ret;
|
---|
| 799 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 800 | catch (...) { free(ret); throw; }
|
---|
| 801 | return ret;
|
---|
| 802 | }
|
---|
| 803 | template <typename T0, typename T1, typename T2>
|
---|
| 804 | element_type * construct(const volatile T0 & a0, volatile T1 & a1, const volatile T2 & a2)
|
---|
| 805 | {
|
---|
| 806 | element_type * const ret = malloc();
|
---|
| 807 | if (ret == 0)
|
---|
| 808 | return ret;
|
---|
| 809 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 810 | catch (...) { free(ret); throw; }
|
---|
| 811 | return ret;
|
---|
| 812 | }
|
---|
| 813 | template <typename T0, typename T1, typename T2>
|
---|
| 814 | element_type * construct(T0 & a0, const volatile T1 & a1, const volatile T2 & a2)
|
---|
| 815 | {
|
---|
| 816 | element_type * const ret = malloc();
|
---|
| 817 | if (ret == 0)
|
---|
| 818 | return ret;
|
---|
| 819 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 820 | catch (...) { free(ret); throw; }
|
---|
| 821 | return ret;
|
---|
| 822 | }
|
---|
| 823 | template <typename T0, typename T1, typename T2>
|
---|
| 824 | element_type * construct(const T0 & a0, const volatile T1 & a1, const volatile T2 & a2)
|
---|
| 825 | {
|
---|
| 826 | element_type * const ret = malloc();
|
---|
| 827 | if (ret == 0)
|
---|
| 828 | return ret;
|
---|
| 829 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 830 | catch (...) { free(ret); throw; }
|
---|
| 831 | return ret;
|
---|
| 832 | }
|
---|
| 833 | template <typename T0, typename T1, typename T2>
|
---|
| 834 | element_type * construct(volatile T0 & a0, const volatile T1 & a1, const volatile T2 & a2)
|
---|
| 835 | {
|
---|
| 836 | element_type * const ret = malloc();
|
---|
| 837 | if (ret == 0)
|
---|
| 838 | return ret;
|
---|
| 839 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 840 | catch (...) { free(ret); throw; }
|
---|
| 841 | return ret;
|
---|
| 842 | }
|
---|
| 843 | template <typename T0, typename T1, typename T2>
|
---|
| 844 | element_type * construct(const volatile T0 & a0, const volatile T1 & a1, const volatile T2 & a2)
|
---|
| 845 | {
|
---|
| 846 | element_type * const ret = malloc();
|
---|
| 847 | if (ret == 0)
|
---|
| 848 | return ret;
|
---|
| 849 | try { new (ret) element_type(a0, a1, a2); }
|
---|
| 850 | catch (...) { free(ret); throw; }
|
---|
| 851 | return ret;
|
---|
| 852 | }
|
---|
| 853 |
|
---|