Rename insert() to set() to avoid confusion with std::map::insert()
[junction.git] / junction / SingleMap_Linear.h
index d347b5ad8220e686c59cbf94affccd6aa4ac2536..f68ec10d094eae3717d761bda9bfb54dde245229 100644 (file)
@@ -189,7 +189,7 @@ public:
         return iter.isValid() ? iter.getValue() : NULL;
     }
 
-    Value insert(const Key& key, Value desired) {
+    Value set(const Key& key, Value desired) {
         Iterator iter(*this, key);
         return iter.exchangeValue(desired);
     }