Minor clean up

This commit is contained in:
gingerBill
2024-04-26 13:25:08 +01:00
parent 7305478261
commit a3e77dcc3b
3 changed files with 17 additions and 10 deletions

View File

@@ -2,8 +2,8 @@ GB_STATIC_ASSERT(sizeof(MapIndex) == sizeof(u32));
struct StringHashKey {
u32 hash;
String string;
u32 hash;
operator String() const noexcept {
return this->string;
@@ -329,11 +329,12 @@ gb_internal StringMapEntry<T> const *begin(StringMap<T> const &m) noexcept {
template <typename T>
gb_internal StringMapEntry<T> *end(StringMap<T> &m) {
gb_internal StringMapEntry<T> *end(StringMap<T> &m) noexcept {
return m.entries + m.count;
}
template <typename T>
gb_internal StringMapEntry<T> const *end(StringMap<T> const &m) noexcept {
return m.entries + m.count;
}
}