Skip to content

Commit

Permalink
hash_map: rename to ArrayHashMap and add new HashMap implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahnvour committed Sep 1, 2020
1 parent 3f7cb14 commit 575fbd5
Show file tree
Hide file tree
Showing 17 changed files with 2,017 additions and 767 deletions.
1,087 changes: 1,087 additions & 0 deletions lib/std/array_hash_map.zig

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/std/buf_set.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ pub const BufSet = struct {
}

pub fn deinit(self: *BufSet) void {
for (self.hash_map.items()) |entry| {
var it = self.hash_map.iterator();
while (it.next()) |entry| {
self.free(entry.key);
}
self.hash_map.deinit();
Expand Down
Loading

0 comments on commit 575fbd5

Please # to comment.