add hash method to scopeindex cursor

This commit is contained in:
N. Engelhardt 2024-12-06 11:18:39 +01:00
parent b66897e9b9
commit 2a744b4b82
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,10 @@ public:
return !(*this == other);
}
int hash() const {
return mkhash(scope_name.hash(), hash_ptr_ops::hash(target));
}
bool valid() const {
return target != nullptr;
}