mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Replace compiler for loops for the hash-table types to simplify code usage
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user