pub fn fetchPut(self: *Self, allocator: Allocator, key: K, value: V) Allocator.Error!?KV
Inserts a new Entry into the hash map, returning the previous one, if any.
Entry
self: *Self
allocator: Allocator
key: K
value: V
898 899 900 901 902
pub fn fetchPut(self: *Self, allocator: Allocator, key: K, value: V) Allocator.Error!?KV { if (@sizeOf(Context) != 0) @compileError("Cannot infer context " ++ @typeName(Context) ++ ", call fetchPutContext instead."); return self.fetchPutContext(allocator, key, value, undefined); }
Inserts a new
Entryinto the hash map, returning the previous one, if any.