AAset

A collection type that stores items of the same type. The item type must support toHash and ==

Alias This

range

Members

Functions

add
void add(T item)

* Adds an item to the set. * Params: item to add.

clear
void clear()

* Removes all items leaving the set empty.

length
size_t length()
opBinaryRight
bool opBinaryRight(T lhs)

* Supports the in operator. * Params: item to check for membership in the set. * Returns: true if the item is in the set, or false if it isn't.

range
auto range()

* Provides a range. * Returns: a range over the set's items.

remove
bool remove(T item)

* Attempts to remove the given item from the set. * Params: item to remove. * Returns: true if item present (and therefore removed) or false if * the item wasn't present.

Meta