ordered-set: introduce ordered_set_get()

This commit is contained in:
Yu Watanabe
2021-05-23 17:12:40 +09:00
parent 2a5a844259
commit fbb1a39866
+4
View File
@@ -34,6 +34,10 @@ static inline int ordered_set_put(OrderedSet *s, void *p) {
return ordered_hashmap_put((OrderedHashmap*) s, p, p);
}
static inline void *ordered_set_get(OrderedSet *s, const void *p) {
return ordered_hashmap_get((OrderedHashmap*) s, p);
}
static inline unsigned ordered_set_size(OrderedSet *s) {
return ordered_hashmap_size((OrderedHashmap*) s);
}