priority_queue

package
v0.0.0-...-c85928f Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item[T any] struct {
	Value    T
	Priority int
	// contains filtered or unexported fields
}

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

func Empty

func Empty[T any]() *Queue[T]

func (*Queue[T]) Len

func (q *Queue[T]) Len() int

func (*Queue[T]) Peek

func (q *Queue[T]) Peek() *Item[T]

func (*Queue[T]) Pop

func (q *Queue[T]) Pop() *Item[T]

func (*Queue[T]) Push

func (q *Queue[T]) Push(item *Item[T])

func (*Queue[T]) Update

func (q *Queue[T]) Update(item *Item[T])

Jump to

Keyboard shortcuts

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