diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-07-08 21:03:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-07-08 21:03:28 -0700 |
| commit | a489ea0b2f38c67025c2b2424749a9a7320cdd5a (patch) | |
| tree | b27dffca9c3c26ef8cb33776dfbdf1941e7f6e55 /lib/std/hash_map.zig | |
| parent | 0e1c7209e8632ebf398e60de9053e2e0fe8b5661 (diff) | |
| parent | bf56cdd9edffd5b97d2084b46cda6e6a89a391c1 (diff) | |
| download | zig-a489ea0b2f38c67025c2b2424749a9a7320cdd5a.tar.gz zig-a489ea0b2f38c67025c2b2424749a9a7320cdd5a.zip | |
Merge branch 'register-allocation'
Diffstat (limited to 'lib/std/hash_map.zig')
| -rw-r--r-- | lib/std/hash_map.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/hash_map.zig b/lib/std/hash_map.zig index 05550a289a..645789a04b 100644 --- a/lib/std/hash_map.zig +++ b/lib/std/hash_map.zig @@ -15,6 +15,10 @@ pub fn AutoHashMap(comptime K: type, comptime V: type) type { return HashMap(K, V, getAutoHashFn(K), getAutoEqlFn(K), autoEqlIsCheap(K)); } +pub fn AutoHashMapUnmanaged(comptime K: type, comptime V: type) type { + return HashMapUnmanaged(K, V, getAutoHashFn(K), getAutoEqlFn(K), autoEqlIsCheap(K)); +} + /// Builtin hashmap for strings as keys. pub fn StringHashMap(comptime V: type) type { return HashMap([]const u8, V, hashString, eqlString, true); |
