Set.empty

Tells whether the container contains any elements.

struct Set(T, alias hasher = hash)
@property const
bool
empty
()
if (
isHashFunction!(hasher, T)
)

Return Value

Type: bool

Whether the container is empty.

Examples

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

Meta