| author | |
| committer | |
| log | 4b48266bb7dd0a9f9353c0695a2c98c497c0165c |
| tree | fe5b4ffe60db460584596fc0f284601a7b02095b |
| parent | e1a5e061ca7897ce6e08b724d517a83ae439bf41 |
| signature |
2 files changed, 5 insertions(+), 0 deletions(-)
lib/std/hash_map.zig+4| ... | ... | @@ -24,6 +24,10 @@ pub fn StringHashMap(comptime V: type) type { |
| 24 | 24 | return HashMap([]const u8, V, hashString, eqlString, true); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | pub fn StringHashMapUnmanaged(comptime V: type) type { | |
| 28 | return HashMapUnmanaged([]const u8, V, hashString, eqlString, true); | |
| 29 | } | |
| 30 | ||
| 27 | 31 | pub fn eqlString(a: []const u8, b: []const u8) bool { |
| 28 | 32 | return mem.eql(u8, a, b); |
| 29 | 33 | } |
lib/std/std.zig+1| ... | ... | @@ -25,6 +25,7 @@ pub const SegmentedList = @import("segmented_list.zig").SegmentedList; |
| 25 | 25 | pub const SinglyLinkedList = @import("linked_list.zig").SinglyLinkedList; |
| 26 | 26 | pub const SpinLock = @import("spinlock.zig").SpinLock; |
| 27 | 27 | pub const StringHashMap = hash_map.StringHashMap; |
| 28 | pub const StringHashMapUnmanaged = hash_map.StringHashMapUnmanaged; | |
| 28 | 29 | pub const TailQueue = @import("linked_list.zig").TailQueue; |
| 29 | 30 | pub const Target = @import("target.zig").Target; |
| 30 | 31 | pub const Thread = @import("thread.zig").Thread; |