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,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;
};