1 // Copyright (C) 2000 Stephen Cleary
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)
7 // See http://www.boost.org for updates, documentation, and revision history.
9 // This file was AUTOMATICALLY GENERATED from "stdin"
10 // Do NOT include directly!
13 template <typename T0>
14 element_type * construct(const T0 & a0)
16 element_type * const ret = (malloc)();
19 try { new (ret) element_type(a0); }
20 catch (...) { (free)(ret); throw; }
23 template <typename T0, typename T1>
24 element_type * construct(const T0 & a0, const T1 & a1)
26 element_type * const ret = (malloc)();
29 try { new (ret) element_type(a0, a1); }
30 catch (...) { (free)(ret); throw; }
33 template <typename T0, typename T1, typename T2>
34 element_type * construct(const T0 & a0, const T1 & a1, const T2 & a2)
36 element_type * const ret = (malloc)();
39 try { new (ret) element_type(a0, a1, a2); }
40 catch (...) { (free)(ret); throw; }