]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libstdc++-v3/contrib/libstdc++-v3-4.3.3/include/std/functional
update
[l4.git] / l4 / pkg / libstdc++-v3 / contrib / libstdc++-v3-4.3.3 / include / std / functional
1 // <functional> -*- C++ -*-
2
3 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
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 2, 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 // You should have received a copy of the GNU General Public License
18 // along with this library; see the file COPYING.  If not, write to
19 // the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 // Boston, MA 02110-1301, USA.
21
22 // As a special exception, you may use this file as part of a free software
23 // library without restriction.  Specifically, if other files instantiate
24 // templates or use macros or inline functions from this file, or you compile
25 // this file and link it with other files to produce an executable, this
26 // file does not by itself cause the resulting executable to be covered by
27 // the GNU General Public License.  This exception does not however
28 // invalidate any other reasons why the executable file might be covered by
29 // the GNU General Public License.
30
31 /*
32  * Copyright (c) 1997
33  * Silicon Graphics Computer Systems, Inc.
34  *
35  * Permission to use, copy, modify, distribute and sell this software
36  * and its documentation for any purpose is hereby granted without fee,
37  * provided that the above copyright notice appear in all copies and
38  * that both that copyright notice and this permission notice appear
39  * in supporting documentation.  Silicon Graphics makes no
40  * representations about the suitability of this software for any
41  * purpose.  It is provided "as is" without express or implied warranty.
42  *
43  */
44
45 /** @file include/functional
46  *  This is a Standard C++ Library header.
47  */
48
49 #ifndef _GLIBCXX_FUNCTIONAL
50 #define _GLIBCXX_FUNCTIONAL 1
51
52 #pragma GCC system_header
53
54 #include <bits/c++config.h>
55 #include <bits/stl_function.h>
56
57 #ifdef __GXX_EXPERIMENTAL_CXX0X__
58 #  if defined(_GLIBCXX_INCLUDE_AS_TR1)
59 #    error C++0x header cannot be included from TR1 header
60 #  endif
61 #  include <typeinfo>
62 #  include <new>
63 #  include <tuple>
64 #  include <type_traits>
65 #  include <bits/stringfwd.h>
66 #  include <bits/functional_hash.h>
67 #  include <ext/type_traits.h>
68 #  if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
69 #    include <tr1_impl/functional>
70 #  else
71 #    define _GLIBCXX_INCLUDE_AS_CXX0X
72 #    define _GLIBCXX_BEGIN_NAMESPACE_TR1
73 #    define _GLIBCXX_END_NAMESPACE_TR1
74 #    define _GLIBCXX_TR1
75 #    include <tr1_impl/functional>
76 #    undef _GLIBCXX_TR1
77 #    undef _GLIBCXX_END_NAMESPACE_TR1
78 #    undef _GLIBCXX_BEGIN_NAMESPACE_TR1
79 #    undef _GLIBCXX_INCLUDE_AS_CXX0X
80 #  endif
81 #endif
82
83 #endif // _GLIBCXX_FUNCTIONAL