Added more assertion
[libcds.git] / cds / algo / split_bitstring.h
index 37cf2804ca77f3a13683c37a8783d314a2d13184..660cebfacc85dd219c057cdb08a4c334d22edbfa 100644 (file)
@@ -133,6 +133,12 @@ namespace cds { namespace algo {
             m_pos = 0;
         }
 
+        // Returns pointer to source bitstring
+        bitstring const * source() const
+        {
+            return reinterpret_cast<bitstring const *>( m_first );
+        }
+
     private:
         //@cond
         uint_type const* m_ptr;  ///< current position in the hash