diff --git a/array/parray.hpp b/array/parray.hpp index c468c4d4..a29a63d4 100644 --- a/array/parray.hpp +++ b/array/parray.hpp @@ -76,10 +76,12 @@ namespace cruft { const DataT* data (void) const; DataT* data (void); + SizeT size (void) const; + bool empty (void) const { return size () == 0; } private: - SizeT m_size; + SizeT m_size; DataT *m_data; };