priority_queue

package
v0.0.0-...-5bd6445 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Q

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

func New

func New[T constraints.Ordered]() *Q[T]

func NewFunc

func NewFunc[T any](less func(T, T) bool) *Q[T]

func (*Q[T]) Len

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

func (*Q[T]) Pop

func (q *Q[T]) Pop() T

func (*Q[T]) Push

func (q *Q[T]) Push(v T)

Jump to

Keyboard shortcuts

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