Remove trailing spaces
[libcds.git] / cds / container / split_list_map_nogc.h
index d230b77b35f49af49d284e3b98bdfb9e1ff0890f..8f86af6dabdf7443894484cc1ff30933daa804b2 100644 (file)
@@ -12,7 +12,7 @@ namespace cds { namespace container {
     /** @ingroup cds_nonintrusive_map
         \anchor cds_nonintrusive_SplitListMap_nogc
 
-        This specialization is so-called append-only. 
+        This specialization is so-called append-only.
         The map does not support the removal of list item.
 
         See \ref cds_nonintrusive_SplitListMap_hp "SplitListMap" for description of template parameters.
@@ -56,10 +56,11 @@ 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
-        typedef typename base_class::options::traits::key_accessor key_accessor;
+        typedef typename base_class::traits::key_accessor key_accessor;
         //@endcond
 
     public:
@@ -99,7 +100,7 @@ namespace cds { namespace container {
         {
             return base_class::begin();
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return base_class::cbegin();
         }
@@ -111,7 +112,7 @@ namespace cds { namespace container {
         {
             return base_class::end();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return base_class::cend();
         }
@@ -279,6 +280,12 @@ namespace cds { namespace container {
         {
             return base_class::size();
         }
+
+        /// Returns internal statistics
+        stat const& statistics() const
+        {
+            return base_class::statistics();
+        }
     };
 }}  // namespace cds::container