Map.clearErase

Removes all elements from all buckets and sets the element values to val_init.

Note: Beware that calling this.clear() is known to sometimes cause unexpected behaviour when the map is reused afterwards (where cyclic links are introduced in the bucket-set). Call this method instead as it has been reported to properly clear the map.

class Map(V, K)
typeof(this)
clearErase
(
in V val_init = v_init
)

Parameters

val_init V

initialisation value

Return Value

Type: typeof(this)

this instance

Meta