pub fn put(self: *Self, gpa: Allocator, key: K, value: V) Oom!void
Clobbers any existing data. To detect if a put would clobber existing data, see getOrPut.
getOrPut
self: *Self
gpa: Allocator
key: K
value: V
464 465 466 467 468
pub fn put(self: *Self, gpa: Allocator, key: K, value: V) Oom!void { if (@sizeOf(Context) != 0) @compileError("Cannot infer context " ++ @typeName(Context) ++ ", call putContext instead."); return self.putContext(gpa, key, value, undefined); }
Clobbers any existing data. To detect if a put would clobber existing data, see
getOrPut.