Skip to content

[C] Queue

Type Parameters

Type Parameter
T

Constructors

new Queue()

new Queue<T>(elements?): Queue<T>

Parameters

ParameterType
elements?T[]

Returns

Queue<T>

Methods

dequeue()

dequeue(): T

Returns

T


enqueue()

enqueue(...items): void

Parameters

ParameterType
itemsT[]

Returns

void


isEmpty()

isEmpty(): boolean

Returns

boolean