util/IntrusiveHashSet: add unlink(), is_linked()
This commit is contained in:

committed by
Max Kellermann

parent
02f5698868
commit
f1cea1f152
@@ -41,6 +41,14 @@ struct IntrusiveHashSetHook {
|
|||||||
using SiblingsHook = IntrusiveListHook<mode>;
|
using SiblingsHook = IntrusiveListHook<mode>;
|
||||||
|
|
||||||
SiblingsHook intrusive_hash_set_siblings;
|
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();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user