Rename insert() to set() to avoid confusion with std::map::insert()
[junction.git] / junction / extra / impl / MapAdapter_Linear_Mutex.h
index fbb21dfdd36e5c6bf1afc07c297b6af04255b4b7..d383663442d1be939bdab58923735b1871a760d5 100644 (file)
@@ -52,9 +52,9 @@ public:
         Map(ureg capacity) : m_map(capacity) {
         }
 
-        void insert(u32 key, void* value) {
+        void set(u32 key, void* value) {
             turf::LockGuard<turf::Mutex> guard(m_mutex);
-            m_map.insert(key, value);
+            m_map.set(key, value);
         }
 
         void* get(u32 key) {