Function HashTable.empty

Tells whether the container contains any elements.

bool empty() const @property;

Returns

Whether the container is empty.

Example

HashTable!(string, int) hashTable;
assert(hashTable.empty);
hashTable["five"] = 5;
assert(!hashTable.empty);