Function Set.empty

Tells whether the container contains any elements.

bool empty() const @property;

Returns

Whether the container is empty.

Example

Set!int set;
assert(set.empty);
set.insert(5);
assert(!set.empty);