Rename insert() to set() to avoid confusion with std::map::insert()
[junction.git] / samples / MapPerformanceTests / MapPerformanceTests.cpp
index 806706b44beffacdc14df9d5a48d12039751ed6a..d0a5e3d583214300f21f6800479928a371052315 100644 (file)
@@ -126,7 +126,7 @@ public:
         MapAdapter::Map* map = m_shared.map;
         for (ureg i = 0; i < m_shared.numKeysPerThread; i++) {
             u32 key = m_addIndex * Prime;
-            map->insert(key, (void*) (key & ~uptr(3)));
+            map->set(key, (void*) (key & ~uptr(3)));
             if (++m_addIndex == m_rangeHi)
                 m_addIndex = m_rangeLo;
         }
@@ -155,7 +155,7 @@ public:
                 break;
             u32 key = m_addIndex * Prime;
             if (key >= 2) {
-                map->insert(key, (void*) uptr(key));
+                map->set(key, (void*) uptr(key));
                 stats.mapOpsDone++;
             }
             if (++m_addIndex == m_rangeHi)