summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/ext/rb_tree
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-06 15:50:28 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-06 15:50:28 +0000
commit3305f7d0edbbb8ea8f85e325bdb4da47fb0c4108 (patch)
tree5e4a19a16ece761c718d5e8ef56f353f2ffd46ac /libstdc++-v3/include/ext/rb_tree
parent538165cd2b4b122bc9f00ae06dcc925e6f2c9dec (diff)
downloadppe42-gcc-3305f7d0edbbb8ea8f85e325bdb4da47fb0c4108.tar.gz
ppe42-gcc-3305f7d0edbbb8ea8f85e325bdb4da47fb0c4108.zip
2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_alloc.h: Cleanups. * include/ext/functional: Same. * include/ext/hash_map: Same. * include/ext/hash_set: Same. * include/ext/iterator: Same. * include/ext/memory: Same. * include/ext/numeric: Same. * include/ext/rb_tree: Same. * include/ext/ropeimpl.h: Same. * include/ext/slist: Same. * include/ext/stdio_filebuf.h: Same. * include/ext/stdio_sync_filebuf.h: Same. * include/ext/stl_rope.h: Move to... * include/ext/rope: ...here. * include/ext/stl_hash_fun.h: Move to... * include/ext/hash_fun.h: ...here. * include/ext/stl_hashtable.h: Move to... * include/ext/hashtable.h: ...here. * include/backward/hashtable.h: Reflect new names. * include/Makefile.am: Same. * include/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/ext/rb_tree')
-rw-r--r--libstdc++-v3/include/ext/rb_tree52
1 files changed, 26 insertions, 26 deletions
diff --git a/libstdc++-v3/include/ext/rb_tree b/libstdc++-v3/include/ext/rb_tree
index 39412438382..f0aed4714f9 100644
--- a/libstdc++-v3/include/ext/rb_tree
+++ b/libstdc++-v3/include/ext/rb_tree
@@ -59,39 +59,39 @@
* include this header if you are using GCC 3 or later.
*/
-#ifndef _EXT_RB_TREE
-#define _EXT_RB_TREE
+#ifndef _RB_TREE
+#define _RB_TREE 1
#pragma GCC system_header
+
#include <bits/stl_tree.h>
namespace __gnu_cxx
{
-using std::_Rb_tree;
-using std::allocator;
-
-// Class rb_tree is not part of the C++ standard. It is provided for
-// compatibility with the HP STL.
-
-/**
- * This is an SGI extension.
- * @ingroup SGIextensions
- * @doctodo
-*/
-template <class _Key, class _Value, class _KeyOfValue, class _Compare,
- class _Alloc = allocator<_Value> >
-struct rb_tree : public _Rb_tree<_Key, _Value, _KeyOfValue, _Compare, _Alloc>
-{
- typedef _Rb_tree<_Key, _Value, _KeyOfValue, _Compare, _Alloc> _Base;
- typedef typename _Base::allocator_type allocator_type;
-
- rb_tree(const _Compare& __comp = _Compare(),
- const allocator_type& __a = allocator_type())
- : _Base(__comp, __a) {}
+ using std::_Rb_tree;
+ using std::allocator;
- ~rb_tree() {}
-};
+ // Class rb_tree is not part of the C++ standard. It is provided for
+ // compatibility with the HP STL.
+ /**
+ * This is an SGI extension.
+ * @ingroup SGIextensions
+ * @doctodo
+ */
+ template <class _Key, class _Value, class _KeyOfValue, class _Compare,
+ class _Alloc = allocator<_Value> >
+ struct rb_tree : public _Rb_tree<_Key, _Value, _KeyOfValue, _Compare, _Alloc>
+ {
+ typedef _Rb_tree<_Key, _Value, _KeyOfValue, _Compare, _Alloc> _Base;
+ typedef typename _Base::allocator_type allocator_type;
+
+ rb_tree(const _Compare& __comp = _Compare(),
+ const allocator_type& __a = allocator_type())
+ : _Base(__comp, __a) { }
+
+ ~rb_tree() { }
+ };
} // namespace __gnu_cxx
-#endif /* _EXT_RB_TREE */
+#endif
OpenPOWER on IntegriCloud