Rename insert() to set() to avoid confusion with std::map::insert()
[junction.git] / samples / MapCorrectnessTests / TestChurn.h
index 5ca48b8f5629802ac03b9ddcc9a293441c9be645..ca2b321fc2c066f9d72ccbb2b6d8befa99fa11e2 100644 (file)
@@ -79,7 +79,7 @@ public:
             u32 key = thread.insertIndex * m_relativePrime;
             key = key ^ (key >> 16);
             if (key >= 2) {
-                m_map.insert(key, (void*) uptr(key));
+                m_map.set(key, (void*) uptr(key));
             }
             if (++thread.insertIndex >= thread.rangeHi)
                 thread.insertIndex = thread.rangeLo;
@@ -96,7 +96,7 @@ public:
                     u32 key = thread.insertIndex * m_relativePrime;
                     key = key ^ (key >> 16);
                     if (key >= 2) {
-                        m_map.insert(key, (void*) uptr(key));
+                        m_map.set(key, (void*) uptr(key));
                     }
                     if (++thread.insertIndex >= thread.rangeHi)
                         thread.insertIndex = thread.rangeLo;