1
This commit is contained in:
parent
a28a913a90
commit
2ce4c46c71
10
listhead.go
10
listhead.go
@ -74,6 +74,16 @@ func (this *ListHead) Next() *ListHead {
|
||||
return this.next
|
||||
}
|
||||
|
||||
func (this *ListHead) Size() int32 {
|
||||
num := int32(0)
|
||||
this.ForEach_r(
|
||||
func (data interface{}) bool {
|
||||
num++
|
||||
return true
|
||||
})
|
||||
return num
|
||||
}
|
||||
|
||||
func (this *ListHead) ForEachFrom(from *ListHead,
|
||||
cb ListHead_Foreach_Func) {
|
||||
for pos := from; pos != this; pos = pos.next {
|
||||
|
Loading…
x
Reference in New Issue
Block a user