Queue (Constructor)

Summary

Constructs a System.Queue<T> object.

Signatures

Click on a signature to select it and view its documentation.

Usage

public Queue()

Description

Constructs an empty queue.

Examples

Initialization with data
1
2
3
4
import System;
 
auto queue = new System.Queue<int>([ 1, 2, 3 ]);
Console.log(queue.pop()); // 1

Share

HTML | BBCode | Direct Link