00001 // <functional> -*- 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 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/functional 00046 * This is a Standard C++ Library header. 00047 */ 00048 00049 #ifndef _GLIBCXX_FUNCTIONAL 00050 #define _GLIBCXX_FUNCTIONAL 1 00051 00052 #pragma GCC system_header 00053 00054 #include <bits/c++config.h> 00055 #include <bits/stl_function.h> 00056 00057 #ifdef __GXX_EXPERIMENTAL_CXX0X__ 00058 # if defined(_GLIBCXX_INCLUDE_AS_TR1) 00059 # error C++0x header cannot be included from TR1 header 00060 # endif 00061 # include <typeinfo> 00062 # include <new> 00063 # include <tuple> 00064 # include <type_traits> 00065 # include <bits/stringfwd.h> 00066 # include <bits/functional_hash.h> 00067 # include <ext/type_traits.h> 00068 # if defined(_GLIBCXX_INCLUDE_AS_CXX0X) 00069 # include <tr1_impl/functional> 00070 # else 00071 # define _GLIBCXX_INCLUDE_AS_CXX0X 00072 # define _GLIBCXX_BEGIN_NAMESPACE_TR1 00073 # define _GLIBCXX_END_NAMESPACE_TR1 00074 # define _GLIBCXX_TR1 00075 # include <tr1_impl/functional> 00076 # undef _GLIBCXX_TR1 00077 # undef _GLIBCXX_END_NAMESPACE_TR1 00078 # undef _GLIBCXX_BEGIN_NAMESPACE_TR1 00079 # undef _GLIBCXX_INCLUDE_AS_CXX0X 00080 # endif 00081 #endif 00082 00083 #endif // _GLIBCXX_FUNCTIONAL