]>
Commit | Line | Data |
---|---|---|
54c1bf78 | 1 | // <memory> -*- C++ -*- |
de96ac46 | 2 | |
39b8cd70 | 3 | // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
14c52eca | 4 | // Free Software Foundation, Inc. |
de96ac46 BK |
5 | // |
6 | // This file is part of the GNU ISO C++ Library. This library is free | |
7 | // software; you can redistribute it and/or modify it under the | |
8 | // terms of the GNU General Public License as published by the | |
9 | // Free Software Foundation; either version 2, or (at your option) | |
10 | // any later version. | |
11 | ||
12 | // This library is distributed in the hope that it will be useful, | |
13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | // GNU General Public License for more details. | |
16 | ||
af13a7a6 BK |
17 | // You should have received a copy of the GNU General Public License |
18 | // along with this library; see the file COPYING. If not, write to | |
19 | // the Free Software Foundation, 51 Franklin Street, Fifth Floor, | |
20 | // Boston, MA 02110-1301, USA. | |
de96ac46 BK |
21 | |
22 | // As a special exception, you may use this file as part of a free software | |
23 | // library without restriction. Specifically, if other files instantiate | |
24 | // templates or use macros or inline functions from this file, or you compile | |
25 | // this file and link it with other files to produce an executable, this | |
26 | // file does not by itself cause the resulting executable to be covered by | |
27 | // the GNU General Public License. This exception does not however | |
28 | // invalidate any other reasons why the executable file might be covered by | |
29 | // the GNU General Public License. | |
30 | ||
54c1bf78 BK |
31 | /* |
32 | * Copyright (c) 1997-1999 | |
33 | * Silicon Graphics Computer Systems, Inc. | |
34 | * | |
35 | * Permission to use, copy, modify, distribute and sell this software | |
36 | * and its documentation for any purpose is hereby granted without fee, | |
37 | * provided that the above copyright notice appear in all copies and | |
38 | * that both that copyright notice and this permission notice appear | |
39 | * in supporting documentation. Silicon Graphics makes no | |
40 | * representations about the suitability of this software for any | |
41 | * purpose. It is provided "as is" without express or implied warranty. | |
42 | * | |
43 | */ | |
44 | ||
143c27b0 | 45 | /** @file include/memory |
0aa06b18 | 46 | * This is a Standard C++ Library header. |
2f9d51b8 PE |
47 | */ |
48 | ||
1143680e SE |
49 | #ifndef _GLIBCXX_MEMORY |
50 | #define _GLIBCXX_MEMORY 1 | |
54c1bf78 BK |
51 | |
52 | #pragma GCC system_header | |
53 | ||
acb8a4ef PC |
54 | #include <bits/stl_algobase.h> |
55 | #include <bits/allocator.h> | |
56 | #include <bits/stl_construct.h> | |
57 | #include <bits/stl_uninitialized.h> | |
58 | #include <bits/stl_tempbuf.h> | |
acb8a4ef | 59 | #include <bits/stl_raw_storage_iter.h> |
54c1bf78 | 60 | |
af13a7a6 | 61 | #ifdef __GXX_EXPERIMENTAL_CXX0X__ |
e133ace8 PC |
62 | # if defined(_GLIBCXX_INCLUDE_AS_TR1) |
63 | # error C++0x header cannot be included from TR1 header | |
64 | # endif | |
65 | # include <exception> // std::exception | |
e133ace8 | 66 | # include <typeinfo> // std::type_info in get_deleter |
e133ace8 PC |
67 | # include <iosfwd> // std::basic_ostream |
68 | # include <ext/atomicity.h> | |
69 | # include <ext/concurrence.h> | |
70 | # include <bits/functexcept.h> | |
71 | # include <bits/stl_function.h> // std::less | |
72 | # include <debug/debug.h> | |
73 | # include <type_traits> | |
4dd9d9db | 74 | # if _GLIBCXX_DEPRECATED |
40abbf1f BK |
75 | # include <backward/auto_ptr.h> |
76 | # endif | |
e133ace8 | 77 | # if defined(_GLIBCXX_INCLUDE_AS_CXX0X) |
aaf0ca6f JW |
78 | # include <tr1_impl/boost_sp_counted_base.h> |
79 | # include <bits/boost_sp_shared_count.h> | |
e133ace8 PC |
80 | # include <tr1_impl/boost_shared_ptr.h> |
81 | # else | |
82 | # define _GLIBCXX_INCLUDE_AS_CXX0X | |
83 | # define _GLIBCXX_BEGIN_NAMESPACE_TR1 | |
84 | # define _GLIBCXX_END_NAMESPACE_TR1 | |
85 | # define _GLIBCXX_TR1 | |
aaf0ca6f JW |
86 | # include <tr1_impl/boost_sp_counted_base.h> |
87 | # include <bits/boost_sp_shared_count.h> | |
e133ace8 PC |
88 | # include <tr1_impl/boost_shared_ptr.h> |
89 | # undef _GLIBCXX_TR1 | |
90 | # undef _GLIBCXX_END_NAMESPACE_TR1 | |
91 | # undef _GLIBCXX_BEGIN_NAMESPACE_TR1 | |
92 | # undef _GLIBCXX_INCLUDE_AS_CXX0X | |
93 | # endif | |
40abbf1f BK |
94 | #else |
95 | # include <backward/auto_ptr.h> | |
af13a7a6 BK |
96 | #endif |
97 | ||
1143680e | 98 | #endif /* _GLIBCXX_MEMORY */ |