pub fn put(self: *Self, allocator: Allocator, key: K, value: V) Allocator.Error!void
Insert an entry if the associated key is not already present, otherwise update preexisting value.
self: *Self
allocator: Allocator
key: K
value: V
1021 1022 1023 1024 1025
pub fn put(self: *Self, allocator: Allocator, key: K, value: V) Allocator.Error!void { if (@sizeOf(Context) != 0) @compileError("Cannot infer context " ++ @typeName(Context) ++ ", call putContext instead."); return self.putContext(allocator, key, value, undefined); }
Insert an entry if the associated key is not already present, otherwise update preexisting value.