Added erase_at( iterator ) function to MichaelHashSet/Map and SplitListSet/Map based...
[libcds.git] / cds / container / impl / iterable_kvlist.h
index 4a5e44bf72a823ac953f330e8c14c81502d78e90..296e0e6ca4f1a81c94a63402bc2ed1fcb424f012 100644 (file)
@@ -445,6 +445,19 @@ namespace cds { namespace container {
             return base_class::erase_with( key, less_wrapper<Less>(), f );
         }
 
+        /// Deletes the item pointed by iterator \p iter
+        /**
+            Returns \p true if the operation is successful, \p false otherwise.
+            The function can return \p false if the node the iterator points to has already been deleted
+            by other thread.
+
+            The function does not invalidate the iterator, it remains valid and can be used for further traversing.
+        */
+        bool erase_at( iterator const& iter )
+        {
+            return base_class::erase_at( iter );
+        }
+
         /// Extracts the item from the list with specified \p key
         /**
             The function searches an item with key equal to \p key,