util/IntrusiveHashSet: add unlink(), is_linked()
This commit is contained in:
parent
02f5698868
commit
f1cea1f152
@ -41,6 +41,14 @@ struct IntrusiveHashSetHook {
|
||||
using SiblingsHook = IntrusiveListHook<mode>;
|
||||
|
||||
SiblingsHook intrusive_hash_set_siblings;
|
||||
|
||||
void unlink() noexcept {
|
||||
intrusive_hash_set_siblings.unlink();
|
||||
}
|
||||
|
||||
bool is_linked() const noexcept {
|
||||
return intrusive_hash_set_siblings.is_linked();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user