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

Method intersects

runcontainer.go:2419–2423  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

2417}
2418
2419func (rc *runContainer16) intersects(a container) bool {
2420 // TODO: optimize by doing inplace/less allocation
2421 isect := rc.and(a)
2422 return !isect.isEmpty()
2423}
2424
2425func (rc *runContainer16) xor(a container) container {
2426 switch c := a.(type) {

Callers

nothing calls this directly

Calls 2

andMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected