From b7474c1e3635de37ac6976de9007e94bccf2c9cc Mon Sep 17 00:00:00 2001 From: Aart Bik Date: Wed, 15 Jan 2025 07:47:19 -0800 Subject: [PATCH] add size() to container storage (#824) --- include/matx/core/storage.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/matx/core/storage.h b/include/matx/core/storage.h index 789a783bb..17260f459 100644 --- a/include/matx/core/storage.h +++ b/include/matx/core/storage.h @@ -590,6 +590,16 @@ namespace matx return container_.allocate(size); } + /** + * @brief Get size of container in bytes + * + * @return Size in bytes + */ + __MATX_INLINE__ auto size() const + { + return container_.size(); + } + /** * Get the reference count *