pub fn putNoClobber(self: *Self, gpa: Allocator, key: K, value: V) Oom!void
Inserts a key-value pair into the hash map, asserting that no previous entry with the same key is already present
self: *Self
gpa: Allocator
key: K
value: V
476 477 478 479 480
pub fn putNoClobber(self: *Self, gpa: Allocator, key: K, value: V) Oom!void { if (@sizeOf(Context) != 0) @compileError("Cannot infer context " ++ @typeName(Context) ++ ", call putNoClobberContext instead."); return self.putNoClobberContext(gpa, key, value, undefined); }
Inserts a key-value pair into the hash map, asserting that no previous entry with the same key is already present