memory 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // <memory> -*- C++ -*-
  2. // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  3. // Free Software Foundation, Inc.
  4. //
  5. // This file is part of the GNU ISO C++ Library. This library is free
  6. // software; you can redistribute it and/or modify it under the
  7. // terms of the GNU General Public License as published by the
  8. // Free Software Foundation; either version 3, or (at your option)
  9. // any later version.
  10. // This library is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. // Under Section 7 of GPL version 3, you are granted additional
  15. // permissions described in the GCC Runtime Library Exception, version
  16. // 3.1, as published by the Free Software Foundation.
  17. // You should have received a copy of the GNU General Public License and
  18. // a copy of the GCC Runtime Library Exception along with this program;
  19. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  20. // <http://www.gnu.org/licenses/>.
  21. /*
  22. * Copyright (c) 1997-1999
  23. * Silicon Graphics Computer Systems, Inc.
  24. *
  25. * Permission to use, copy, modify, distribute and sell this software
  26. * and its documentation for any purpose is hereby granted without fee,
  27. * provided that the above copyright notice appear in all copies and
  28. * that both that copyright notice and this permission notice appear
  29. * in supporting documentation. Silicon Graphics makes no
  30. * representations about the suitability of this software for any
  31. * purpose. It is provided "as is" without express or implied warranty.
  32. *
  33. */
  34. /** @file include/memory
  35. * This is a Standard C++ Library header.
  36. */
  37. #ifndef _GLIBCXX_MEMORY
  38. #define _GLIBCXX_MEMORY 1
  39. #pragma GCC system_header
  40. #include <bits/stl_algobase.h>
  41. #include <bits/allocator.h>
  42. #include <bits/stl_construct.h>
  43. #include <bits/stl_uninitialized.h>
  44. #include <bits/stl_tempbuf.h>
  45. #include <bits/stl_raw_storage_iter.h>
  46. #ifdef __GXX_EXPERIMENTAL_CXX0X__
  47. # if defined(_GLIBCXX_INCLUDE_AS_TR1)
  48. # error C++0x header cannot be included from TR1 header
  49. # endif
  50. # include <exception> // std::exception
  51. # include <typeinfo> // std::type_info in get_deleter
  52. # include <iosfwd> // std::basic_ostream
  53. # include <ext/atomicity.h>
  54. # include <ext/concurrence.h>
  55. # include <bits/functexcept.h>
  56. # include <bits/stl_function.h> // std::less
  57. # include <bits/unique_ptr.h>
  58. # include <debug/debug.h>
  59. # include <type_traits>
  60. # include <functional>
  61. # if _GLIBCXX_DEPRECATED
  62. # include <backward/auto_ptr.h>
  63. # endif
  64. # if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
  65. # include <tr1_impl/boost_sp_counted_base.h>
  66. # include <bits/shared_ptr.h>
  67. # else
  68. # define _GLIBCXX_INCLUDE_AS_CXX0X
  69. # define _GLIBCXX_BEGIN_NAMESPACE_TR1
  70. # define _GLIBCXX_END_NAMESPACE_TR1
  71. # define _GLIBCXX_TR1
  72. # include <tr1_impl/boost_sp_counted_base.h>
  73. # include <bits/shared_ptr.h>
  74. # undef _GLIBCXX_TR1
  75. # undef _GLIBCXX_END_NAMESPACE_TR1
  76. # undef _GLIBCXX_BEGIN_NAMESPACE_TR1
  77. # undef _GLIBCXX_INCLUDE_AS_CXX0X
  78. # endif
  79. #else
  80. # include <backward/auto_ptr.h>
  81. #endif
  82. /**
  83. * @defgroup memory Memory
  84. * @ingroup utilities
  85. *
  86. * Components for memory allocation, deallocation, and management.
  87. */
  88. #endif /* _GLIBCXX_MEMORY */