Skip to content

Commit

Permalink
add hash method to scopeindex cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
nakengelhardt committed Dec 6, 2024
1 parent b66897e commit 2a744b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/scopeinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ class IdTree
return !(*this == other);
}

int hash() const {
return mkhash(scope_name.hash(), hash_ptr_ops::hash(target));
}

bool valid() const {
return target != nullptr;
}
Expand Down

0 comments on commit 2a744b4

Please sign in to comment.