fn AutoHashMapUnmanaged(comptime K: type, comptime V: type) type
Functions
fn cloneContext(self: Self, allocator: Allocator, new_ctx: anytype) Allocator.Error!HashMapUnmanaged(K, V, @TypeOf(new_ctx), max_load_percentage)
No documentation provided.
fn contains(self: *const Self, key: K) bool
Return true if there is a value associated with key in the map.
fn ensureTotalCapacity(self: *Self, allocator: Allocator, new_size: Size) Allocator.Error!void
No documentation provided.
fn ensureTotalCapacityContext(self: *Self, allocator: Allocator, new_size: Size, ctx: Context) Allocator.Error!void
No documentation provided.
fn ensureUnusedCapacity(self: *Self, allocator: Allocator, additional_size: Size) Allocator.Error!void
No documentation provided.
fn ensureUnusedCapacityContext(self: *Self, allocator: Allocator, additional_size: Size, ctx: Context) Allocator.Error!void
No documentation provided.
fn fetchPut(self: *Self, allocator: Allocator, key: K, value: V) Allocator.Error!?KV
Inserts a new
Entry
into the hash map, returning the previous one, if any.fn fetchPutAssumeCapacityContext(self: *Self, key: K, value: V, ctx: Context) ?KV
No documentation provided.
fn fetchPutContext(self: *Self, allocator: Allocator, key: K, value: V, ctx: Context) Allocator.Error!?KV
No documentation provided.
fn getKey(self: Self, key: K) ?K
Get a copy of the actual key associated with adapted key, if present.
fn getKeyPtr(self: Self, key: K) ?*K
Get an optional pointer to the actual key associated with adapted key, if presen…
Get an optional pointer to the actual key associated with adapted key, if present.
fn getOrPut(self: *Self, allocator: Allocator, key: K) Allocator.Error!GetOrPutResult
No documentation provided.
fn getOrPutAdapted(self: *Self, allocator: Allocator, key: anytype, key_ctx: anytype) Allocator.Error!GetOrPutResult
No documentation provided.
fn getOrPutAssumeCapacityAdapted(self: *Self, key: anytype, ctx: anytype) GetOrPutResult
No documentation provided.
fn getOrPutAssumeCapacityContext(self: *Self, key: K, ctx: Context) GetOrPutResult
No documentation provided.
fn getOrPutContext(self: *Self, allocator: Allocator, key: K, ctx: Context) Allocator.Error!GetOrPutResult
No documentation provided.
fn getOrPutContextAdapted(self: *Self, allocator: Allocator, key: anytype, key_ctx: anytype, ctx: Context) Allocator.Error!GetOrPutResult
No documentation provided.
fn getOrPutValue(self: *Self, allocator: Allocator, key: K, value: V) Allocator.Error!Entry
No documentation provided.
fn getOrPutValueContext(self: *Self, allocator: Allocator, key: K, value: V, ctx: Context) Allocator.Error!Entry
No documentation provided.
fn getPtr(self: Self, key: K) ?*V
Get an optional pointer to the value associated with key, if present.
fn move(self: *Self) Self
Set the map to an empty state, making deinitialization a no-op, and returning a…
Set the map to an empty state, making deinitialization a no-op, and returning a copy of the original.
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 p…
Insert an entry if the associated key is not already present, otherwise update preexisting value.
fn putAssumeCapacity(self: *Self, key: K, value: V) void
Asserts there is enough capacity to store the new key-value pair. Clobbers any …
Asserts there is enough capacity to store the new key-value pair. Clobbers any existing data. To detect if a put would clobber existing data, see
getOrPutAssumeCapacity
.fn putAssumeCapacityContext(self: *Self, key: K, value: V, ctx: Context) void
No documentation provided.
fn putAssumeCapacityNoClobber(self: *Self, key: K, value: V) void
Insert an entry in the map. Assumes it is not already present, and that no allo…
Insert an entry in the map. Assumes it is not already present, and that no allocation is needed.
fn putAssumeCapacityNoClobberContext(self: *Self, key: K, value: V, ctx: Context) void
No documentation provided.
fn putContext(self: *Self, allocator: Allocator, key: K, value: V, ctx: Context) Allocator.Error!void
No documentation provided.
fn putNoClobber(self: *Self, allocator: Allocator, key: K, value: V) Allocator.Error!void
Insert an entry in the map. Assumes it is not already present.
fn putNoClobberContext(self: *Self, allocator: Allocator, key: K, value: V, ctx: Context) Allocator.Error!void
No documentation provided.
fn removeByPtr(self: *Self, key_ptr: *K) void
Delete the entry with key pointed to by key_ptr from the hash map. key_ptr is a…
Delete the entry with key pointed to by key_ptr from the hash map. key_ptr is assumed to be a valid pointer to a key that is present in the hash map.