This commit is contained in:
aozhiwei 2024-04-07 14:32:38 +08:00
parent 61a612b594
commit a6abd190f9

View File

@ -103,6 +103,10 @@ func (this *ListHead) isCursor() bool {
return this.data == this
}
func (this *ListHead) IsFirst(entry* ListHead) bool {
return this.next == entry
}
func (this *ListHead) ForEach(cb ListHead_Foreach_Func) {
for pos := this.next; pos != this; pos = pos.next {
if !cb(pos.data) {