Home | History | Annotate | Download | only in include
      1 // <functional> -*- C++ -*-
      2 
      3 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009
      4 // Free Software Foundation, Inc.
      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 3, 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 
     17 // Under Section 7 of GPL version 3, you are granted additional
     18 // permissions described in the GCC Runtime Library Exception, version
     19 // 3.1, as published by the Free Software Foundation.
     20 
     21 // You should have received a copy of the GNU General Public License and
     22 // a copy of the GCC Runtime Library Exception along with this program;
     23 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
     24 // <http://www.gnu.org/licenses/>.
     25 
     26 /*
     27  * Copyright (c) 1997
     28  * Silicon Graphics Computer Systems, Inc.
     29  *
     30  * Permission to use, copy, modify, distribute and sell this software
     31  * and its documentation for any purpose is hereby granted without fee,
     32  * provided that the above copyright notice appear in all copies and
     33  * that both that copyright notice and this permission notice appear
     34  * in supporting documentation.  Silicon Graphics makes no
     35  * representations about the suitability of this software for any
     36  * purpose.  It is provided "as is" without express or implied warranty.
     37  *
     38  */
     39 
     40 /** @file include/functional
     41  *  This is a Standard C++ Library header.
     42  */
     43 
     44 #ifndef _GLIBCXX_FUNCTIONAL
     45 #define _GLIBCXX_FUNCTIONAL 1
     46 
     47 #pragma GCC system_header
     48 
     49 #include <bits/c++config.h>
     50 #include <bits/stl_function.h>
     51 
     52 #ifdef __GXX_EXPERIMENTAL_CXX0X__
     53 #  if defined(_GLIBCXX_INCLUDE_AS_TR1)
     54 #    error C++0x header cannot be included from TR1 header
     55 #  endif
     56 #  include <typeinfo>
     57 #  include <new>
     58 #  include <tuple>
     59 #  include <type_traits>
     60 #  include <bits/stringfwd.h>
     61 #  include <bits/functional_hash.h>
     62 #  include <ext/type_traits.h>
     63 #  if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
     64 #    include <tr1_impl/functional>
     65 #  else
     66 #    define _GLIBCXX_INCLUDE_AS_CXX0X
     67 #    define _GLIBCXX_BEGIN_NAMESPACE_TR1
     68 #    define _GLIBCXX_END_NAMESPACE_TR1
     69 #    define _GLIBCXX_TR1
     70 #    include <tr1_impl/functional>
     71 #    undef _GLIBCXX_TR1
     72 #    undef _GLIBCXX_END_NAMESPACE_TR1
     73 #    undef _GLIBCXX_BEGIN_NAMESPACE_TR1
     74 #    undef _GLIBCXX_INCLUDE_AS_CXX0X
     75 #  endif
     76 #endif
     77 
     78 #endif // _GLIBCXX_FUNCTIONAL
     79