queue

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package queue implements a fully generic queue. It is essentially a public interface for internal/stackequeuebase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue[T any] struct {
	*stackqueuebase.Base[T]
}

Queue is a generic queue.

func NewQueue

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

NewQueue creates an empty Queue.

func NewQueueN

func NewQueueN[T any](size int) *Queue[T]

NewQueueN creates an empty Queue with |size| elements worth of preallocated memory.

Jump to

Keyboard shortcuts

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