aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2002-04-28 16:21:32 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2002-04-28 16:21:32 +0000
commit32c8d10081ea8d106b1bf83f0ce13480c9e36910 (patch)
treee9b22eb6aabe3e071d8b054f526dfa1253e2726f /libstdc++-v3
parentba29591d2fc0333262c806301b3c9e8308b50e0d (diff)
downloadgcc-32c8d10081ea8d106b1bf83f0ce13480c9e36910.zip
gcc-32c8d10081ea8d106b1bf83f0ce13480c9e36910.tar.gz
gcc-32c8d10081ea8d106b1bf83f0ce13480c9e36910.tar.bz2
[multiple changes]
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog9
-rw-r--r--libstdc++-v3/include/ext/stl_hashtable.h1
-rw-r--r--libstdc++-v3/testsuite/ext/hash_set.cc39
3 files changed, 49 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1b57312..7956c74 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/include/ext/stl_hashtable.h b/libstdc++-v3/include/ext/stl_hashtable.h
index def44fa..5ee49d8 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 <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
index 0000000..068bdcd
--- /dev/null
+++ b/libstdc++-v3/testsuite/ext/hash_set.cc
@@ -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;
+}