class · System

Queue<T>

public class System.Queue<T> : System.Any

First in, first out: Enqueue at the end, Dequeue from the front (a ring buffer).

Kind
class
Namespace
System
Assembly
System.Core
Access
public
Source file
List.ant

Type parameters

NameConstraints
Tany type

Inheritance

Base classes
Any Queue<T>

Constructors

constructor Queue()
#

Properties

property Count: i32
#

read-only

property IsEmpty: bool
#

read-only

Methods

method Enqueue(item: T) -> void
#
method Dequeue() -> T
#
method Peek() -> T
#
method Clear() -> void
#

Private and internal members (4)

field items: T[]
#

private

field count: i32
#

private

method Grow() -> void
#

private

Inherited members (5)

Source

Queue<T> as Larva HIR, decompiled from its Larva HIR.

System.Queue.hir
// First in, first out: Enqueue at the end, Dequeue from the front (a ring buffer).
public class System.Queue<T> : System.Any
{
    field items: T[]
    field head: i32
    field count: i32
    method Grow() -> void
    constructor Queue()
    method Enqueue(item: T) -> void
    method Dequeue() -> T
    method Peek() -> T
    method Clear() -> void
    property Count: i32
    property IsEmpty: bool
}
Esc