]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
41975.cc: Use __uset_hashtable rather than removed __unordered_set.
authorFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 24 Sep 2012 19:48:06 +0000 (19:48 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Mon, 24 Sep 2012 19:48:06 +0000 (19:48 +0000)
2012-09-24  François Dumont  <fdumont@gcc.gnu.org>

* testsuite/performance/23_containers/insert_erase/41975.cc: Use
__uset_hashtable rather than removed __unordered_set.

From-SVN: r191678

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/performance/23_containers/insert_erase/41975.cc

index 70ee2a88e1beff9f6323922d122cceb6e3c0cc11..920bd33e96ca3901c03f5f1156a6e7c685b3b750 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-24  François Dumont  <fdumont@gcc.gnu.org>
+
+       * testsuite/performance/23_containers/insert_erase/41975.cc: Use
+       __uset_hashtable rather than removed __unordered_set.
+
 2012-09-23  Paolo Carlini  <paolo.carlini@oracle.com>
 
        Revert:
index a5dae41dc60ab5d8f49a75c457a92118726d4494..286a045d8da2dfd23c61fe6e8d0b9db68982c8a9 100644 (file)
@@ -40,8 +40,9 @@ namespace
       const int nb = 200000;
       start_counters(time, resource);
 
-      std::__unordered_set<int, std::hash<int>, std::equal_to<int>,
-                          std::allocator<int>, use_cache> us;
+      std::__uset_hashtable<int, std::hash<int>, std::equal_to<int>,
+                           std::allocator<int>,
+                           std::__uset_traits<use_cache>> us;
       for (int i = 0; i != nb; ++i)
        us.insert(i);
 
@@ -125,9 +126,10 @@ namespace
 
       start_counters(time, resource);
 
-      std::__unordered_set<std::string, std::hash<std::string>,
-                          std::equal_to<std::string>,
-                          std::allocator<std::string>, use_cache> us;
+      std::__uset_hashtable<std::string, std::hash<std::string>,
+                           std::equal_to<std::string>,
+                           std::allocator<std::string>,
+                           std::__uset_traits<use_cache>> us;
       for (int i = 0; i != nb; ++i)
        us.insert(strs[i]);