Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { Value any // contains filtered or unexported fields }
Item contains a reference to an enqueued value.
type LessFunc ¶
LessFunc returns whether the first parameter is to be considered less than the second parameter.
type PrioQueue ¶
type PrioQueue struct { Less LessFunc // contains filtered or unexported fields }
PrioQueue is a min-heap queue with items sorted using the Less function.
func (*PrioQueue) Push ¶
Push inserts a new value into the queue, returning an Item pointer suitable for updating or removing the value directly.
Click to show internal directories.
Click to hide internal directories.