memory

Go to the documentation of this file.
00001 // <memory> -*- C++ -*-
00002 
00003 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
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 2, 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 // You should have received a copy of the GNU General Public License
00018 // along with this library; see the file COPYING.  If not, write to
00019 // the Free Software Foundation, 51 Franklin Street, Fifth Floor,
00020 // Boston, MA 02110-1301, USA.
00021 
00022 // As a special exception, you may use this file as part of a free software
00023 // library without restriction.  Specifically, if other files instantiate
00024 // templates or use macros or inline functions from this file, or you compile
00025 // this file and link it with other files to produce an executable, this
00026 // file does not by itself cause the resulting executable to be covered by
00027 // the GNU General Public License.  This exception does not however
00028 // invalidate any other reasons why the executable file might be covered by
00029 // the GNU General Public License.
00030 
00031 /*
00032  * Copyright (c) 1997-1999
00033  * Silicon Graphics Computer Systems, Inc.
00034  *
00035  * Permission to use, copy, modify, distribute and sell this software
00036  * and its documentation for any purpose is hereby granted without fee,
00037  * provided that the above copyright notice appear in all copies and
00038  * that both that copyright notice and this permission notice appear
00039  * in supporting documentation.  Silicon Graphics makes no
00040  * representations about the suitability of this software for any
00041  * purpose.  It is provided "as is" without express or implied warranty.
00042  *
00043  */
00044 
00045 /** @file include/memory
00046  *  This is a Standard C++ Library header.
00047  */
00048 
00049 #ifndef _GLIBCXX_MEMORY
00050 #define _GLIBCXX_MEMORY 1
00051 
00052 #pragma GCC system_header
00053 
00054 #include <bits/stl_algobase.h>
00055 #include <bits/allocator.h>
00056 #include <bits/stl_construct.h>
00057 #include <bits/stl_uninitialized.h>
00058 #include <bits/stl_tempbuf.h>
00059 #include <bits/stl_raw_storage_iter.h>
00060 
00061 #ifdef __GXX_EXPERIMENTAL_CXX0X__
00062 #  if defined(_GLIBCXX_INCLUDE_AS_TR1)
00063 #    error C++0x header cannot be included from TR1 header
00064 #  endif
00065 #  include <exception>            // std::exception
00066 #  include <typeinfo>             // std::type_info in get_deleter
00067 #  include <iosfwd>               // std::basic_ostream
00068 #  include <ext/atomicity.h>
00069 #  include <ext/concurrence.h>
00070 #  include <bits/functexcept.h>
00071 #  include <bits/stl_function.h>  // std::less
00072 #  include <debug/debug.h>
00073 #  include <type_traits>
00074 #  if _GLIBCXX_DEPRECATED
00075 #    include <backward/auto_ptr.h>
00076 #  endif
00077 #  if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
00078 #    include <tr1_impl/boost_sp_counted_base.h>
00079 #    include <bits/boost_sp_shared_count.h>
00080 #    include <tr1_impl/boost_shared_ptr.h>
00081 #  else
00082 #    define _GLIBCXX_INCLUDE_AS_CXX0X
00083 #    define _GLIBCXX_BEGIN_NAMESPACE_TR1
00084 #    define _GLIBCXX_END_NAMESPACE_TR1
00085 #    define _GLIBCXX_TR1
00086 #    include <tr1_impl/boost_sp_counted_base.h>
00087 #    include <bits/boost_sp_shared_count.h>
00088 #    include <tr1_impl/boost_shared_ptr.h>
00089 #    undef _GLIBCXX_TR1
00090 #    undef _GLIBCXX_END_NAMESPACE_TR1
00091 #    undef _GLIBCXX_BEGIN_NAMESPACE_TR1
00092 #    undef _GLIBCXX_INCLUDE_AS_CXX0X
00093 #  endif
00094 #else
00095 #  include <backward/auto_ptr.h>
00096 #endif
00097 
00098 #endif /* _GLIBCXX_MEMORY */

Generated on Fri Jan 23 20:12:14 2009 for libstdc++ by  doxygen 1.5.6