]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/include/std/utility
doxygroups.cc: Move algorithm groups into algorithmfwd.h.
[thirdparty/gcc.git] / libstdc++-v3 / include / std / utility
1 // <utility> -*- C++ -*-
2
3 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 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 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 *
33 * Copyright (c) 1994
34 * Hewlett-Packard Company
35 *
36 * Permission to use, copy, modify, distribute and sell this software
37 * and its documentation for any purpose is hereby granted without fee,
38 * provided that the above copyright notice appear in all copies and
39 * that both that copyright notice and this permission notice appear
40 * in supporting documentation. Hewlett-Packard Company makes no
41 * representations about the suitability of this software for any
42 * purpose. It is provided "as is" without express or implied warranty.
43 *
44 *
45 * Copyright (c) 1996,1997
46 * Silicon Graphics Computer Systems, Inc.
47 *
48 * Permission to use, copy, modify, distribute and sell this software
49 * and its documentation for any purpose is hereby granted without fee,
50 * provided that the above copyright notice appear in all copies and
51 * that both that copyright notice and this permission notice appear
52 * in supporting documentation. Silicon Graphics makes no
53 * representations about the suitability of this software for any
54 * purpose. It is provided "as is" without express or implied warranty.
55 */
56
57 /** @file include/utility
58 * This is a Standard C++ Library header.
59 */
60
61 #ifndef _GLIBCXX_UTILITY
62 #define _GLIBCXX_UTILITY 1
63
64 #pragma GCC system_header
65
66 #include <bits/c++config.h>
67 #include <bits/stl_relops.h>
68 #include <bits/stl_pair.h>
69
70 #ifdef __GXX_EXPERIMENTAL_CXX0X__
71 # if defined(_GLIBCXX_INCLUDE_AS_TR1)
72 # error C++0x header cannot be included from TR1 header
73 # endif
74 # if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
75 # include <tr1_impl/utility>
76 # else
77 # define _GLIBCXX_INCLUDE_AS_CXX0X
78 # define _GLIBCXX_BEGIN_NAMESPACE_TR1
79 # define _GLIBCXX_END_NAMESPACE_TR1
80 # define _GLIBCXX_TR1
81 # include <tr1_impl/utility>
82 # undef _GLIBCXX_TR1
83 # undef _GLIBCXX_END_NAMESPACE_TR1
84 # undef _GLIBCXX_BEGIN_NAMESPACE_TR1
85 # undef _GLIBCXX_INCLUDE_AS_CXX0X
86 # endif
87 # include <bits/move.h>
88 # include <initializer_list>
89 #endif
90
91 /**
92 * @defgroup utilities Utilities
93 *
94 * Components deemed generally useful. Includes pair, tuple,
95 * forward/move helpers, ratio, function object, metaprogramming and
96 * type traits, time, date, and memory functions.
97 */
98
99 #endif /* _GLIBCXX_UTILITY */