HashSet

A simple hash set implementation using the build-in AA.

Constructors

this
this()

Creates a new hash set.

this
this(T[] elements)

Creates a new hash set from a sequence of elements.

Members

Functions

add
void add(T value)

Adds a value to the hash set.

has
bool has(T value)

Checks whether the hash set contains the given value.

opIndex
bool opIndex(T value)

Operator overload for accessing the set like an array. This calls "bool has(T value);"

Meta