[multiple changes]
authorPaolo Carlini <paolo@gcc.gnu.org>
Sun, 28 Apr 2002 16:21:32 +0000 (16:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 28 Apr 2002 16:21:32 +0000 (16:21 +0000)
2002-04-28  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

* include/ext/stl_hashtable.h: Import __iterator_category

2002-04-28  Paolo Carlini  <pcarlini@unitus.it>
            Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

* testsuite/ext/hash_set.cc: New testfile.

From-SVN: r52843

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/stl_hashtable.h
libstdc++-v3/testsuite/ext/hash_set.cc [new file with mode: 0644]

index 1b57312..7956c74 100644 (file)
@@ -1,3 +1,12 @@
+2002-04-28  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+
+       * include/ext/stl_hashtable.h: Import __iterator_category
+
+2002-04-28  Paolo Carlini  <pcarlini@unitus.it>
+            Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+
+       * testsuite/ext/hash_set.cc: New testfile.
+
 2002-04-27  Benjamin Kosnik  <bkoz@redhat.com>
 
        * config/os/solaris/solaris2.5/bits/os_defines.h: Remove
index def44fa..5ee49d8 100644 (file)
@@ -86,6 +86,7 @@ using std::_Destroy;
 using std::distance;
 using std::vector;
 using std::pair;
+using std::__iterator_category;
 
 template <class _Val>
 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 (file)
index 0000000..068bdcd
--- /dev/null
@@ -0,0 +1,39 @@
+// 2002-04-28  Paolo Carlini  <pcarlini@unitus.it>
+//             Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
+
+// 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 <ext/hash_set>
+
+void
+test01()
+{
+  bool test = true;
+  const int werte[] = { 1, 25, 9, 16, -36};
+  const int anzahl = sizeof(werte) / sizeof(int);
+  __gnu_cxx::hash_set<int> intTable(werte, werte + anzahl);
+}
+
+int main()
+{
+  test01();
+  return 0;
+}