From 32c8d10081ea8d106b1bf83f0ce13480c9e36910 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sun, 28 Apr 2002 16:21:32 +0000 Subject: [PATCH] [multiple changes] 2002-04-28 Peter Schmid * include/ext/stl_hashtable.h: Import __iterator_category 2002-04-28 Paolo Carlini Peter Schmid * testsuite/ext/hash_set.cc: New testfile. From-SVN: r52843 --- libstdc++-v3/ChangeLog | 9 ++++++ libstdc++-v3/include/ext/stl_hashtable.h | 1 + libstdc++-v3/testsuite/ext/hash_set.cc | 39 ++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 libstdc++-v3/testsuite/ext/hash_set.cc diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1b573126758..7956c74d0c4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2002-04-28 Peter Schmid + + * include/ext/stl_hashtable.h: Import __iterator_category + +2002-04-28 Paolo Carlini + Peter Schmid + + * testsuite/ext/hash_set.cc: New testfile. + 2002-04-27 Benjamin Kosnik * config/os/solaris/solaris2.5/bits/os_defines.h: Remove diff --git a/libstdc++-v3/include/ext/stl_hashtable.h b/libstdc++-v3/include/ext/stl_hashtable.h index def44fa344b..5ee49d815f7 100644 --- a/libstdc++-v3/include/ext/stl_hashtable.h +++ b/libstdc++-v3/include/ext/stl_hashtable.h @@ -86,6 +86,7 @@ using std::_Destroy; using std::distance; using std::vector; using std::pair; +using std::__iterator_category; template struct _Hashtable_node diff --git a/libstdc++-v3/testsuite/ext/hash_set.cc b/libstdc++-v3/testsuite/ext/hash_set.cc new file mode 100644 index 00000000000..068bdcd2e76 --- /dev/null +++ b/libstdc++-v3/testsuite/ext/hash_set.cc @@ -0,0 +1,39 @@ +// 2002-04-28 Paolo Carlini +// Peter Schmid + +// Copyright (C) 2002 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 2, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING. If not, write to the Free +// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, +// USA. + +// hash_set (SGI extension) + +#include + +void +test01() +{ + bool test = true; + const int werte[] = { 1, 25, 9, 16, -36}; + const int anzahl = sizeof(werte) / sizeof(int); + __gnu_cxx::hash_set intTable(werte, werte + anzahl); +} + +int main() +{ + test01(); + return 0; +}