array/parray: add empty query
This commit is contained in:
parent
04fd13fe42
commit
bca58bf352
@ -76,10 +76,12 @@ namespace cruft {
|
|||||||
const DataT* data (void) const;
|
const DataT* data (void) const;
|
||||||
|
|
||||||
DataT* data (void);
|
DataT* data (void);
|
||||||
|
|
||||||
SizeT size (void) const;
|
SizeT size (void) const;
|
||||||
|
bool empty (void) const { return size () == 0; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SizeT m_size;
|
SizeT m_size;
|
||||||
DataT *m_data;
|
DataT *m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user