MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / Pop

Method Pop

priorityqueue.go:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (pq *priorityQueue) Pop() interface{} {
36 old := *pq
37 n := len(old)
38 item := old[n-1]
39 item.index = -1 // for safety
40 *pq = old[0 : n-1]
41 return item
42}
43
44func (pq *priorityQueue) update(item *item, value *Bitmap) {
45 item.value = value

Callers 4

HeapOrFunction · 0.45
HeapXorFunction · 0.45
TestFastAggregationsSizeFunction · 0.45
TestFastAggregationsContFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestFastAggregationsSizeFunction · 0.36
TestFastAggregationsContFunction · 0.36