pub fn remove(self: *Self, key: K) bool self: *Selfkey: K1241
1242
1243
1244
1245 pub fn remove(self: *Self, key: K) bool {
if (@sizeOf(Context) != 0)
@compileError("Cannot infer context " ++ @typeName(Context) ++ ", call removeContext instead.");
return self.removeContext(key, undefined);
}
If there is an
Entrywith a matching key, it is deleted from the hash map, and this function returns true. Otherwise this function returns false.TODO: answer the question in these doc comments, does this increase the unused capacity by one?