Renaming map member function insert_key() to insert_with()
[libcds.git] / cds / container / cuckoo_map.h
index 11885552fd406121a39496e3920f61f0ff3f07cc..826b1bb54fac825ca19aaf5dd4d88b351bf5726d 100644 (file)
@@ -411,7 +411,7 @@ namespace cds { namespace container {
         template <typename K>
         bool insert( K const& key )
         {
-            return insert_key( key, [](value_type&){} );
+            return insert_with( key, [](value_type&){} );
         }
 
         /// Inserts new node
@@ -428,7 +428,7 @@ namespace cds { namespace container {
         template <typename K, typename V>
         bool insert( K const& key, V const& val )
         {
-            return insert_key( key, [&val](value_type& item) { item.second = val ; } );
+            return insert_with( key, [&val](value_type& item) { item.second = val ; } );
         }
 
         /// Inserts new node and initialize it by a functor
@@ -457,7 +457,7 @@ namespace cds { namespace container {
             it is preferable that the initialization should be completed only if inserting is successful.
         */
         template <typename K, typename Func>
-        bool insert_key( const K& key, Func func )
+        bool insert_with( const K& key, Func func )
         {
             scoped_node_ptr pNode( alloc_node( key ));
             if ( base_class::insert( *pNode, [&func]( node_type& item ) { func( item.m_val ); } )) {