Map.remove

Removes the mapping for the specified key.

class Map(size_t V, K)
void[]
remove
(
in K key
)
out (val) { if (val) { assert (val.length == V); } }

Parameters

key K

key to remove mapping for

Return Value

Type: void[]

an array slicing the value buffer of the removed element, if found, or null otherwise. It is guaranteed that the referenced value will remain unchanged until the next call to put(), which may reuse it, or to clear().

Out: The returned array is either null or has the length V.

Meta