HashSet

A garbage collected implementation of a hash set.

Because this type is a struct, it can never be null.

Members

Aliases

put
alias put = add

A HashSet is an OutputRange.

Functions

add
void add(T value)

Add an element to this set if needed.

opBinaryRight
bool opBinaryRight(T value)

Provide the 'in' operator for sets.

opEquals
bool opEquals(const(HashSet!U) otherSet)
remove
bool remove(T value)

Remove an element from this set if present.

Properties

empty
bool empty [@property getter]
length
size_t length [@property getter]

Meta