Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / histogram / unsafe_access.hpp
index 4a39965..5680082 100644 (file)
@@ -69,13 +69,28 @@ struct unsafe_access {
   */
   template <class Histogram>
   static auto& storage(Histogram& hist) {
-    return hist.storage_and_mutex_.first();
+    return hist.storage_;
   }
 
   /// @copydoc storage()
   template <class Histogram>
   static const auto& storage(const Histogram& hist) {
-    return hist.storage_and_mutex_.first();
+    return hist.storage_;
+  }
+
+  /**
+    Get index offset.
+    @param hist histogram
+    */
+  template <class Histogram>
+  static auto& offset(Histogram& hist) {
+    return hist.offset_;
+  }
+
+  /// @copydoc offset()
+  template <class Histogram>
+  static const auto& offset(const Histogram& hist) {
+    return hist.offset_;
   }
 
   /**