APIs > ext > data_structure > priority_queue > PriorityQueue
PriorityQueue
struct PriorityQueue[S: Copyable & Movable]
Methods
__init__
__init__(out self, comp: fn (S, S) -> Bool)
__init__(out self, data: List[S], comp: fn (S, S) -> Bool)
top
top(self) -> S
push
push(mut self, item: S)
pop
pop(mut self) -> S
clear
clear(mut self)
__bool__
__bool__(self) -> Bool
__len__
__len__(self) -> Int