feat(hash): add additional HASHKEY_PTR ctor

This commit is contained in:
fallenoak 2025-09-02 20:08:57 -05:00
parent 39dc8e507f
commit cb37f528c3
2 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,10 @@ bool HASHKEY_NONE::operator==(const HASHKEY_NONE& key) {
return true; return true;
} }
HASHKEY_PTR::HASHKEY_PTR(void* key) {
this->m_key = key;
}
bool HASHKEY_PTR::operator==(const HASHKEY_PTR& key) { bool HASHKEY_PTR::operator==(const HASHKEY_PTR& key) {
return this->m_key == key.m_key; return this->m_key == key.m_key;
} }

View file

@ -7,6 +7,7 @@ class HASHKEY_PTR {
void* m_key = nullptr; void* m_key = nullptr;
// Member functions // Member functions
HASHKEY_PTR(void* key);
bool operator==(const HASHKEY_PTR& key); bool operator==(const HASHKEY_PTR& key);
}; };