MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / iterate

Method iterate

runcontainer.go:1114–1124  ·  view source on GitHub ↗
(cb func(x uint16) bool)

Source from the content-addressed store, hash-verified

1112}
1113
1114func (rc *runContainer16) iterate(cb func(x uint16) bool) bool {
1115 iterator := runIterator16{rc, 0, 0}
1116
1117 for iterator.hasNext() {
1118 if !cb(iterator.next()) {
1119 return false
1120 }
1121 }
1122
1123 return true
1124}
1125
1126// hasNext returns false if calling next will panic. It
1127// returns true when there is at least one more value

Callers

nothing calls this directly

Calls 2

hasNextMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected