priority_queue

package
v0.0.0-...-4486ec2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PriorityQueue

type PriorityQueue[T order.Ordered[T]] struct {
	// contains filtered or unexported fields
}

func FromSlice

func FromSlice[T order.Ordered[T]](sl []T) PriorityQueue[T]

func New

func New[T order.Ordered[T]](capacity int) PriorityQueue[T]

func (*PriorityQueue[T]) Add

func (p *PriorityQueue[T]) Add(e T)

func (*PriorityQueue[T]) Cap

func (p *PriorityQueue[T]) Cap() int

func (*PriorityQueue[T]) IsEmpty

func (p *PriorityQueue[T]) IsEmpty() bool

func (*PriorityQueue[T]) Len

func (p *PriorityQueue[T]) Len() int

func (*PriorityQueue[T]) Peek

func (p *PriorityQueue[T]) Peek() T

func (*PriorityQueue[T]) Pop

func (p *PriorityQueue[T]) Pop() T

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL