aboutsummaryrefslogtreecommitdiff
path: root/src/set.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-14 09:25:16 +0200
committerlemon <lsof@mailbox.org>2022-08-14 09:25:16 +0200
commitc129f77ad724aa940b53a125de0e1e4de0ca7240 (patch)
tree57ad369bcfe02d0fb8a311c659e45cf2ae5df075 /src/set.hff
parent66ed623e65ab9350f08061fe7cf12b989c84f65c (diff)
fix arena
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,