diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 03:12:05 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 03:12:05 +0000 |
commit | ffeaf689a248da869b6bc8d4fd2233dfe513c060 (patch) | |
tree | 75ef0e6da73746d6849e25a0996ae34e1aeff51d /contrib/libstdc++/include/ext/rb_tree | |
parent | 9a63ad9273061dc19cbd117762e365ea9634e241 (diff) | |
download | src-ffeaf689a248da869b6bc8d4fd2233dfe513c060.tar.gz src-ffeaf689a248da869b6bc8d4fd2233dfe513c060.zip |
Gcc 3.4.2 20040728 C++ support bits.
Notes
Notes:
svn path=/vendor/gcc/dist/; revision=132720
Diffstat (limited to 'contrib/libstdc++/include/ext/rb_tree')
-rw-r--r-- | contrib/libstdc++/include/ext/rb_tree | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/contrib/libstdc++/include/ext/rb_tree b/contrib/libstdc++/include/ext/rb_tree index 394124383828..2c38b39706e2 100644 --- a/contrib/libstdc++/include/ext/rb_tree +++ b/contrib/libstdc++/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; + 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. + // 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; + /** + * 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() {} -}; + 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 |