Add statistics() method to split-list
[libcds.git] / cds / container / split_list_map.h
index 0128b92d9aee6950f2c18990d297b9d103ef586d..cf560e5d4f2a274ae0bf5cd57619139240495557 100644 (file)
@@ -135,6 +135,7 @@ namespace cds { namespace container {
 
         typedef typename base_class::hash           hash;         ///< Hash functor for \ref key_type
         typedef typename base_class::item_counter   item_counter; ///< Item counter type
+        typedef typename base_class::stat           stat;         ///< Internal statistics
 
     protected:
         //@cond
@@ -588,6 +589,12 @@ namespace cds { namespace container {
         {
             return base_class::size();
         }
+
+        /// Returns internal statistics
+        stat const& statistics() const
+        {
+            return base_class::statistics();
+        }
     };