HashMap.remove

Remove a entry from the map if it is set, given a key.

struct HashMap(K, V)
bool
remove
(
K key
)
if (
isAssignmentCopyable!(Unqual!K) &&
isAssignmentCopyable!(Unqual!V)
)

Parameters

key
Type: K

The key in the map.

Return Value

Type: bool

true if a value was removed, otherwise false.

Meta