1130803Smarcel// rb_tree extension -*- C++ -*-
2130803Smarcel
3130803Smarcel// Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4130803Smarcel//
5130803Smarcel// This file is part of the GNU ISO C++ Library.  This library is free
6130803Smarcel// software; you can redistribute it and/or modify it under the
7130803Smarcel// terms of the GNU General Public License as published by the
8130803Smarcel// Free Software Foundation; either version 2, or (at your option)
9130803Smarcel// any later version.
10130803Smarcel
11130803Smarcel// This library is distributed in the hope that it will be useful,
12130803Smarcel// but WITHOUT ANY WARRANTY; without even the implied warranty of
13130803Smarcel// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14130803Smarcel// GNU General Public License for more details.
15130803Smarcel
16130803Smarcel// You should have received a copy of the GNU General Public License along
17130803Smarcel// with this library; see the file COPYING.  If not, write to the Free
18130803Smarcel// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19130803Smarcel// USA.
20130803Smarcel
21130803Smarcel// As a special exception, you may use this file as part of a free software
22130803Smarcel// library without restriction.  Specifically, if other files instantiate
23130803Smarcel// templates or use macros or inline functions from this file, or you compile
24130803Smarcel// this file and link it with other files to produce an executable, this
25130803Smarcel// file does not by itself cause the resulting executable to be covered by
26130803Smarcel// the GNU General Public License.  This exception does not however
27130803Smarcel// invalidate any other reasons why the executable file might be covered by
28130803Smarcel// the GNU General Public License.
29130803Smarcel
30130803Smarcel/*
31130803Smarcel *
32130803Smarcel * Copyright (c) 1994
33130803Smarcel * Hewlett-Packard Company
34130803Smarcel *
35130803Smarcel * Permission to use, copy, modify, distribute and sell this software
36130803Smarcel * and its documentation for any purpose is hereby granted without fee,
37130803Smarcel * provided that the above copyright notice appear in all copies and
38130803Smarcel * that both that copyright notice and this permission notice appear
39 * in supporting documentation.  Hewlett-Packard Company 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 * Copyright (c) 1996
45 * Silicon Graphics Computer Systems, Inc.
46 *
47 * Permission to use, copy, modify, distribute and sell this software
48 * and its documentation for any purpose is hereby granted without fee,
49 * provided that the above copyright notice appear in all copies and
50 * that both that copyright notice and this permission notice appear
51 * in supporting documentation.  Silicon Graphics makes no
52 * representations about the suitability of this software for any
53 * purpose.  It is provided "as is" without express or implied warranty.
54 */
55
56/** @file ext/rb_tree
57 *  This file is a GNU extension to the Standard C++ Library (possibly
58 *  containing extensions from the HP/SGI STL subset). 
59 */
60
61#ifndef _RB_TREE
62#define _RB_TREE 1
63
64#pragma GCC system_header
65
66#include <bits/stl_tree.h>
67
68_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
69
70  using std::_Rb_tree;
71  using std::allocator;
72
73  // Class rb_tree is not part of the C++ standard.  It is provided for
74  // compatibility with the HP STL.
75
76  /**
77   *  This is an SGI extension.
78   *  @ingroup SGIextensions
79   *  @doctodo
80   */
81  template <class _Key, class _Value, class _KeyOfValue, class _Compare,
82	    class _Alloc = allocator<_Value> >
83    struct rb_tree
84    : public _Rb_tree<_Key, _Value, _KeyOfValue, _Compare, _Alloc>
85    {
86      typedef _Rb_tree<_Key, _Value, _KeyOfValue, _Compare, _Alloc> _Base;
87      typedef typename _Base::allocator_type allocator_type;
88
89      rb_tree(const _Compare& __comp = _Compare(),
90	      const allocator_type& __a = allocator_type())
91      : _Base(__comp, __a) { }
92
93      ~rb_tree() { }
94    };
95
96_GLIBCXX_END_NAMESPACE
97
98#endif
99