pub fn fetchPut(self: *Self, gpa: Allocator, key: K, value: V) Oom!?KV
Inserts a new Entry into the hash map, returning the previous one, if any.
Entry
self: *Self
gpa: Allocator
key: K
value: V
515 516 517 518 519
pub fn fetchPut(self: *Self, gpa: Allocator, key: K, value: V) Oom!?KV { if (@sizeOf(Context) != 0) @compileError("Cannot infer context " ++ @typeName(Context) ++ ", call fetchPutContext instead."); return self.fetchPutContext(gpa, key, value, undefined); }
Inserts a new
Entryinto the hash map, returning the previous one, if any.