queue

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpFunc

type OpFunc[T any] func(q *Queue[T])

func WithRWMutex

func WithRWMutex[T any]() OpFunc[T]

WithRWMutex 赋值函数

type Queue

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

func New

func New[T any](ops ...OpFunc[T]) *Queue[T]

func (*Queue[T]) Back

func (q *Queue[T]) Back() T

func (*Queue[T]) Clear

func (q *Queue[T]) Clear()

func (*Queue[T]) Empty

func (q *Queue[T]) Empty() bool

func (*Queue[T]) Front

func (q *Queue[T]) Front() T

func (*Queue[T]) Pop

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

func (*Queue[T]) Push

func (q *Queue[T]) Push(val T)

func (*Queue[T]) Size

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

func (*Queue[T]) String

func (q *Queue[T]) String() string

Jump to

Keyboard shortcuts

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