mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(hash): add additional HASHKEY_PTR ctor
This commit is contained in:
parent
39dc8e507f
commit
cb37f528c3
2 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,10 @@ bool HASHKEY_NONE::operator==(const HASHKEY_NONE& key) {
|
|||
return true;
|
||||
}
|
||||
|
||||
HASHKEY_PTR::HASHKEY_PTR(void* key) {
|
||||
this->m_key = key;
|
||||
}
|
||||
|
||||
bool HASHKEY_PTR::operator==(const HASHKEY_PTR& key) {
|
||||
return this->m_key == key.m_key;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ class HASHKEY_PTR {
|
|||
void* m_key = nullptr;
|
||||
|
||||
// Member functions
|
||||
HASHKEY_PTR(void* key);
|
||||
bool operator==(const HASHKEY_PTR& key);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue