array/parray: add empty query

This commit is contained in:
Danny Robson 2019-06-02 11:10:23 +10:00
parent 04fd13fe42
commit bca58bf352

View File

@ -76,7 +76,9 @@ 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;