We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcb08e0 commit cd4bce0Copy full SHA for cd4bce0
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: e0faf573132e4b0c8d38087f0224ca968edbe2e9
+refs/heads/master: 9d9790c7f50b2bc2076a821974ed31e99bac9ef2
trunk/src/comp/util/common.rs
@@ -71,6 +71,14 @@ fn new_int_hash[V]() -> std.map.hashmap[int,V] {
71
ret std.map.mk_hashmap[int,V](hasher, eqer);
72
}
73
74
+fn new_uint_hash[V]() -> std.map.hashmap[uint,V] {
75
+ fn hash_uint(&uint x) -> uint { ret x; }
76
+ fn eq_uint(&uint a, &uint b) -> bool { ret a == b; }
77
+ auto hasher = hash_uint;
78
+ auto eqer = eq_uint;
79
+ ret std.map.mk_hashmap[uint,V](hasher, eqer);
80
+}
81
+
82
fn istr(int i) -> str {
83
ret _int.to_str(i, 10u);
84
0 commit comments