Chris@16
|
1 // Copyright (C) 2000 Stephen Cleary
|
Chris@16
|
2 //
|
Chris@16
|
3 // Distributed under the Boost Software License, Version 1.0. (See
|
Chris@16
|
4 // accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
5 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 //
|
Chris@16
|
7 // See http://www.boost.org for updates, documentation, and revision history.
|
Chris@16
|
8
|
Chris@16
|
9 // This file was AUTOMATICALLY GENERATED from "stdin"
|
Chris@16
|
10 // Do NOT include directly!
|
Chris@16
|
11 // Do NOT edit!
|
Chris@16
|
12
|
Chris@16
|
13 template <typename T0>
|
Chris@16
|
14 element_type * construct(const T0 & a0)
|
Chris@16
|
15 {
|
Chris@16
|
16 element_type * const ret = (malloc)();
|
Chris@16
|
17 if (ret == 0)
|
Chris@16
|
18 return ret;
|
Chris@16
|
19 try { new (ret) element_type(a0); }
|
Chris@16
|
20 catch (...) { (free)(ret); throw; }
|
Chris@16
|
21 return ret;
|
Chris@16
|
22 }
|
Chris@16
|
23 template <typename T0, typename T1>
|
Chris@16
|
24 element_type * construct(const T0 & a0, const T1 & a1)
|
Chris@16
|
25 {
|
Chris@16
|
26 element_type * const ret = (malloc)();
|
Chris@16
|
27 if (ret == 0)
|
Chris@16
|
28 return ret;
|
Chris@16
|
29 try { new (ret) element_type(a0, a1); }
|
Chris@16
|
30 catch (...) { (free)(ret); throw; }
|
Chris@16
|
31 return ret;
|
Chris@16
|
32 }
|
Chris@16
|
33 template <typename T0, typename T1, typename T2>
|
Chris@16
|
34 element_type * construct(const T0 & a0, const T1 & a1, const T2 & a2)
|
Chris@16
|
35 {
|
Chris@16
|
36 element_type * const ret = (malloc)();
|
Chris@16
|
37 if (ret == 0)
|
Chris@16
|
38 return ret;
|
Chris@16
|
39 try { new (ret) element_type(a0, a1, a2); }
|
Chris@16
|
40 catch (...) { (free)(ret); throw; }
|
Chris@16
|
41 return ret;
|
Chris@16
|
42 }
|
Chris@16
|
43
|