aboutsummaryrefslogtreecommitdiff
path: root/src/set.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/set.hff')
-rw-r--r--src/set.hff9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/set.hff b/src/set.hff
index 4e4b72c..6ab44ea 100644
--- a/src/set.hff
+++ b/src/set.hff
@@ -1,10 +1,11 @@
import "vec.hff";
import "all.hff";
-#{ KTraits:
- :hash(K) u32
- :eq(T, T) bool
- :dup(T) T }
+#{
+Traits:hash(K) u32
+ :eq(T, T) bool
+ :dup(T) T // useful to strdup strings before interning them
+}
struct Set<T, Traits> {
buf Vec<T>,
set *int,