]>
Commit | Line | Data |
---|---|---|
54c1bf78 | 1 | // <utility> -*- C++ -*- |
de96ac46 | 2 | |
aac2878e | 3 | // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
f425a30a | 4 | // Free Software Foundation, Inc. |
de96ac46 BK |
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 | |
748086b7 | 9 | // Free Software Foundation; either version 3, or (at your option) |
de96ac46 BK |
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 | ||
748086b7 JJ |
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. | |
de96ac46 | 20 | |
748086b7 JJ |
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/>. | |
de96ac46 | 25 | |
54c1bf78 BK |
26 | /* |
27 | * | |
28 | * Copyright (c) 1994 | |
29 | * Hewlett-Packard Company | |
30 | * | |
31 | * Permission to use, copy, modify, distribute and sell this software | |
32 | * and its documentation for any purpose is hereby granted without fee, | |
33 | * provided that the above copyright notice appear in all copies and | |
34 | * that both that copyright notice and this permission notice appear | |
35 | * in supporting documentation. Hewlett-Packard Company makes no | |
36 | * representations about the suitability of this software for any | |
37 | * purpose. It is provided "as is" without express or implied warranty. | |
38 | * | |
39 | * | |
40 | * Copyright (c) 1996,1997 | |
41 | * Silicon Graphics Computer Systems, Inc. | |
42 | * | |
43 | * Permission to use, copy, modify, distribute and sell this software | |
44 | * and its documentation for any purpose is hereby granted without fee, | |
45 | * provided that the above copyright notice appear in all copies and | |
46 | * that both that copyright notice and this permission notice appear | |
47 | * in supporting documentation. Silicon Graphics makes no | |
48 | * representations about the suitability of this software for any | |
49 | * purpose. It is provided "as is" without express or implied warranty. | |
50 | */ | |
51 | ||
143c27b0 | 52 | /** @file include/utility |
0aa06b18 | 53 | * This is a Standard C++ Library header. |
2f9d51b8 PE |
54 | */ |
55 | ||
1143680e SE |
56 | #ifndef _GLIBCXX_UTILITY |
57 | #define _GLIBCXX_UTILITY 1 | |
54c1bf78 BK |
58 | |
59 | #pragma GCC system_header | |
285b36d6 | 60 | |
54c1bf78 BK |
61 | #include <bits/c++config.h> |
62 | #include <bits/stl_relops.h> | |
63 | #include <bits/stl_pair.h> | |
64 | ||
af13a7a6 | 65 | #ifdef __GXX_EXPERIMENTAL_CXX0X__ |
e133ace8 PC |
66 | # if defined(_GLIBCXX_INCLUDE_AS_TR1) |
67 | # error C++0x header cannot be included from TR1 header | |
68 | # endif | |
69 | # if defined(_GLIBCXX_INCLUDE_AS_CXX0X) | |
70 | # include <tr1_impl/utility> | |
71 | # else | |
72 | # define _GLIBCXX_INCLUDE_AS_CXX0X | |
73 | # define _GLIBCXX_BEGIN_NAMESPACE_TR1 | |
74 | # define _GLIBCXX_END_NAMESPACE_TR1 | |
75 | # define _GLIBCXX_TR1 | |
76 | # include <tr1_impl/utility> | |
77 | # undef _GLIBCXX_TR1 | |
78 | # undef _GLIBCXX_END_NAMESPACE_TR1 | |
79 | # undef _GLIBCXX_BEGIN_NAMESPACE_TR1 | |
80 | # undef _GLIBCXX_INCLUDE_AS_CXX0X | |
81 | # endif | |
ca0f8fd1 | 82 | # include <bits/move.h> |
f2752f1d | 83 | # include <initializer_list> |
af13a7a6 BK |
84 | #endif |
85 | ||
aac2878e BK |
86 | /** |
87 | * @defgroup utilities Utilities | |
88 | * | |
89 | * Components deemed generally useful. Includes pair, tuple, | |
90 | * forward/move helpers, ratio, function object, metaprogramming and | |
91 | * type traits, time, date, and memory functions. | |
92 | */ | |
93 | ||
1143680e | 94 | #endif /* _GLIBCXX_UTILITY */ |