Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyHeap = errors.New("empty heap")
Functions ¶
This section is empty.
Types ¶
type Heap ¶
type Heap[T any, C comparator.Comparator[T]] struct { vector.Vector[T] // contains filtered or unexported fields }
func New ¶
func New[T any, C comparator.Comparator[T]]() Heap[T, C]
func NewWithCapacity ¶
func NewWithCapacity[T any, C comparator.Comparator[T]](capacity int) Heap[T, C]
type MaxHeap ¶
type MaxHeap[T cmp.Ordered] struct { Heap[T, comparator.Greater[T]] }
func NewMaxHeap ¶
Click to show internal directories.
Click to hide internal directories.