pub fn getOrPutAdapted(self: *Self, key: anytype, ctx: anytype) Allocator.Error!GetOrPutResult self: *Selfkeyctx271
272
273 pub fn getOrPutAdapted(self: *Self, key: anytype, ctx: anytype) Allocator.Error!GetOrPutResult {
return self.unmanaged.getOrPutContextAdapted(self.allocator, key, ctx, self.ctx);
}
If key exists this function cannot fail. 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 key and value, and theEntrypointers point to it. Caller must then initialize the key and value.