@@ -6,11 +6,11 @@ const Allocator = mem.Allocator;
|
||||
const want_modification_safety = !@compile_var("is_release");
|
||||
const debug_u32 = if (want_modification_safety) u32 else void;
|
||||
|
||||
/*
|
||||
pub inline fn HashMap(inline K: type, inline V: type, inline hash: fn(key: K)->u32, inline eql: fn(a: K, b: K)->bool) {
|
||||
SmallHashMap(K, V, hash, eql, 8);
|
||||
pub inline fn HashMap(inline K: type, inline V: type,
|
||||
inline hash: fn(key: K)->u32, inline eql: fn(a: K, b: K)->bool)
|
||||
{
|
||||
SmallHashMap(K, V, hash, eql, 8)
|
||||
}
|
||||
*/
|
||||
|
||||
pub struct SmallHashMap(K: type, V: type, hash: fn(key: K)->u32, eql: fn(a: K, b: K)->bool, STATIC_SIZE: usize) {
|
||||
entries: []Entry,
|
||||
|
||||
Reference in New Issue
Block a user