memory

Go to the documentation of this file.
00001 // <memory> -*- C++ -*-
00002 
00003 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
00004 // Free Software Foundation, Inc.
00005 //
00006 // This file is part of the GNU ISO C++ Library.  This library is free
00007 // software; you can redistribute it and/or modify it under the
00008 // terms of the GNU General Public License as published by the
00009 // Free Software Foundation; either version 3, or (at your option)
00010 // any later version.
00011 
00012 // This library is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 
00017 // Under Section 7 of GPL version 3, you are granted additional
00018 // permissions described in the GCC Runtime Library Exception, version
00019 // 3.1, as published by the Free Software Foundation.
00020 
00021 // You should have received a copy of the GNU General Public License and
00022 // a copy of the GCC Runtime Library Exception along with this program;
00023 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
00024 // <http://www.gnu.org/licenses/>.
00025 
00026 /*
00027  * Copyright (c) 1997-1999
00028  * Silicon Graphics Computer Systems, Inc.
00029  *
00030  * Permission to use, copy, modify, distribute and sell this software
00031  * and its documentation for any purpose is hereby granted without fee,
00032  * provided that the above copyright notice appear in all copies and
00033  * that both that copyright notice and this permission notice appear
00034  * in supporting documentation.  Silicon Graphics makes no
00035  * representations about the suitability of this software for any
00036  * purpose.  It is provided "as is" without express or implied warranty.
00037  *
00038  */
00039 
00040 /** @file include/memory
00041  *  This is a Standard C++ Library header.
00042  */
00043 
00044 #ifndef _GLIBCXX_MEMORY
00045 #define _GLIBCXX_MEMORY 1
00046 
00047 #pragma GCC system_header
00048 
00049 #include <bits/stl_algobase.h>
00050 #include <bits/allocator.h>
00051 #include <bits/stl_construct.h>
00052 #include <bits/stl_uninitialized.h>
00053 #include <bits/stl_tempbuf.h>
00054 #include <bits/stl_raw_storage_iter.h>
00055 
00056 #ifdef __GXX_EXPERIMENTAL_CXX0X__
00057 #  if defined(_GLIBCXX_INCLUDE_AS_TR1)
00058 #    error C++0x header cannot be included from TR1 header
00059 #  endif
00060 #  include <exception>            // std::exception
00061 #  include <typeinfo>             // std::type_info in get_deleter
00062 #  include <iosfwd>               // std::basic_ostream
00063 #  include <ext/atomicity.h>
00064 #  include <ext/concurrence.h>
00065 #  include <bits/functexcept.h>
00066 #  include <bits/stl_function.h>  // std::less
00067 #  include <bits/unique_ptr.h>
00068 #  include <debug/debug.h>
00069 #  include <type_traits>
00070 #  include <functional>
00071 #  if _GLIBCXX_DEPRECATED
00072 #    include <backward/auto_ptr.h>
00073 #  endif
00074 #  if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
00075 #    include <tr1_impl/boost_sp_counted_base.h>
00076 #    include <bits/shared_ptr.h>
00077 #  else
00078 #    define _GLIBCXX_INCLUDE_AS_CXX0X
00079 #    define _GLIBCXX_BEGIN_NAMESPACE_TR1
00080 #    define _GLIBCXX_END_NAMESPACE_TR1
00081 #    define _GLIBCXX_TR1
00082 #    include <tr1_impl/boost_sp_counted_base.h>
00083 #    include <bits/shared_ptr.h>
00084 #    undef _GLIBCXX_TR1
00085 #    undef _GLIBCXX_END_NAMESPACE_TR1
00086 #    undef _GLIBCXX_BEGIN_NAMESPACE_TR1
00087 #    undef _GLIBCXX_INCLUDE_AS_CXX0X
00088 #  endif
00089 #else
00090 #  include <backward/auto_ptr.h>
00091 #endif
00092 
00093 /**
00094  * @defgroup memory Memory
00095  * @ingroup utilities
00096  *
00097  * Components for memory allocation, deallocation, and management.
00098  */
00099 
00100 #endif /* _GLIBCXX_MEMORY */

Generated on Tue Apr 21 13:13:28 2009 for libstdc++ by  doxygen 1.5.8