diff options
Diffstat (limited to 'src/string_set.cpp')
| -rw-r--r-- | src/string_set.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/string_set.cpp b/src/string_set.cpp index 746ad9529..fce98ec75 100644 --- a/src/string_set.cpp +++ b/src/string_set.cpp @@ -215,3 +215,21 @@ gb_inline void string_set_clear(StringSet *s) { s->hashes.data[i] = MAP_SENTINEL; } } + + + +StringSetEntry *begin(StringSet &m) { + return m.entries.data; +} +StringSetEntry const *begin(StringSet const &m) { + return m.entries.data; +} + + +StringSetEntry *end(StringSet &m) { + return m.entries.data + m.entries.count; +} + +StringSetEntry const *end(StringSet const &m) { + return m.entries.data + m.entries.count; +}
\ No newline at end of file |