map: Add map_clear method

This commit is contained in:
Thiago de Arruda
2015-02-26 23:29:02 -03:00
parent 5cf3dec9a9
commit 05c030c725
2 changed files with 9 additions and 1 deletions

View File

@@ -87,6 +87,11 @@
} \
\
return rv; \
} \
\
void map_##T##_##U##_clear(Map(T, U) *map) \
{ \
kh_clear(T##_##U##_map, map->table); \
}
static inline khint_t String_hash(String s)