BOpenHashTable: Add IsEmpty()
This commit is contained in:
@@ -126,6 +126,11 @@ public:
|
|||||||
return fTableSize;
|
return fTableSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsEmpty() const
|
||||||
|
{
|
||||||
|
return fItemCount == 0;
|
||||||
|
}
|
||||||
|
|
||||||
size_t CountElements() const
|
size_t CountElements() const
|
||||||
{
|
{
|
||||||
return fItemCount;
|
return fItemCount;
|
||||||
|
|||||||
Reference in New Issue
Block a user