ordered-set: add missing ordered_set_size()
This commit is contained in:
parent
1e2a490e91
commit
45f735815e
|
@ -34,6 +34,10 @@ static inline int ordered_set_put(OrderedSet *s, void *p) {
|
|||
return ordered_hashmap_put((OrderedHashmap*) s, p, p);
|
||||
}
|
||||
|
||||
static inline unsigned ordered_set_size(OrderedSet *s) {
|
||||
return ordered_hashmap_size((OrderedHashmap*) s);
|
||||
}
|
||||
|
||||
static inline bool ordered_set_isempty(OrderedSet *s) {
|
||||
return ordered_hashmap_isempty((OrderedHashmap*) s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue