Set

Set class. Manages a set of K's with fast lookup. The toHash() method must be implemented.

Constructors

this
this(size_t n, float load_factor)

Constructor.

this
this(IAllocator allocator, size_t n, float load_factor)

Constructor.

Members

Aliases

opBinaryRight
alias opBinaryRight(istring op : "in") = opIn_r

Support for the 'in' operator

Functions

opApply
int opApply(SetIterator.Dgi dgi)

Same as above, but includes a counter

opApply
int opApply(SetIterator.Dg dg)

'foreach' iteration over set.

opIn_r
bool opIn_r(K key)

Looks up key in the set.

put
bool put(K key)

Puts key into the set.

Mixins

__anonymous
mixin IteratorClass!(BucketSet!(0, K).Iterator, SetIterator)

Mixin of the specialized iterator classes which inherit from BucketSet.Iterator.

Meta