OpenHashSet

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

Constructors

this
this()

Undocumented in source.

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

~this
~this()

Undocumented in source.

Postblit

this(this)
this(this)

Disallow copy construction

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