BucketSet.clearBuckets

Removes all elements from all buckets and sets the values to val_init if val_init is not empty.

class BucketSet(size_t V, K = hash_t)
protected override
void
clearBuckets
(
void[] val_init = null
)
out { foreach (bucket; this.buckets) { assert (bucket.first == null, "non-Null first bucket element found"); } }

Parameters

val_init void[]

initial element value, the length must be V or 0

In: val_init.length must be V.

Out: all the buckets.first are set to null

Meta