summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stdplus/handle/managed.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stdplus/handle/managed.hpp b/src/stdplus/handle/managed.hpp
index 361c1ec..9b9bfb5 100644
--- a/src/stdplus/handle/managed.hpp
+++ b/src/stdplus/handle/managed.hpp
@@ -161,6 +161,19 @@ struct Managed
reset(std::nullopt);
}
+ /** @brief Reference the contained data
+ *
+ * @return A reference to the contained data
+ */
+ constexpr const std::tuple<As...>& data() const noexcept
+ {
+ return as;
+ }
+ constexpr std::tuple<As...>& data() noexcept
+ {
+ return as;
+ }
+
protected:
/* Hold the data parameterized for this container */
std::tuple<As...> as;
OpenPOWER on IntegriCloud