pub fn getOrPutAssumeCapacity(self: *Self, key: K) GetOrPutResult self: *Selfkey: K282
283
284 pub fn getOrPutAssumeCapacity(self: *Self, key: K) GetOrPutResult {
return self.unmanaged.getOrPutAssumeCapacityContext(key, self.ctx);
}
If there is an existing item with
key, then the result'sEntrypointers point to it, and found_existing is true. Otherwise, puts a new item with undefined value, and theEntrypointers point to it. Caller should then initialize the value (but not the key). If a new entry needs to be stored, this function asserts there is enough capacity to store it.