OpenHashSet

Simple open-addressed hash set. Use this instead of HashSet when the size and quantity of the data to be inserted is small.

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Constructors

this
this(Allocator allocator)

Use the given allocator for allocations.

this
this(size_t initialCapacity, Allocator allocator)

Initializes the hash set with the given initial capacity.

this
this(size_t initialCapacity)

Initializes the hash set with the given initial capacity.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

this(this)
@disable this(this)

Disallow copy construction

Copying this object is disabled.

Members

Aliases

opSlice
alias opSlice = range

Functions

clear
void clear()

Removes all items from the hash set.

contains
bool contains(T item)
empty
bool empty()
insert
bool insert(T item)

Inserts the gien item into the set.

length
size_t length()
opBinaryRight
bool opBinaryRight(T item)
opOpAssign
bool opOpAssign(T item)

Inserts the gien item into the set.

range
auto range()
remove
bool remove(T item)

Meta