Skip to content

Commit

Permalink
add size() to container storage (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
aartbik authored Jan 15, 2025
1 parent 97bb925 commit b7474c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/matx/core/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit b7474c1

Please sign in to comment.