pub fn fetchPutAssumeCapacity(self: *Self, key: K, value: V) ?KV
Inserts a new Entry into the hash map, returning the previous one, if any. If insertion happens, asserts there is enough capacity without allocating.
Entry
self: *Self
key: K
value: V
535 536 537 538 539
pub fn fetchPutAssumeCapacity(self: *Self, key: K, value: V) ?KV { if (@sizeOf(Context) != 0) @compileError("Cannot infer context " ++ @typeName(Context) ++ ", call fetchPutAssumeCapacityContext instead."); return self.fetchPutAssumeCapacityContext(key, value, undefined); }
Inserts a new
Entryinto the hash map, returning the previous one, if any. If insertion happens, asserts there is enough capacity without allocating.