Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  queue  >  queue()
queue class : queue() fitter

Description

Get a new instance of queue class with initial value.

Syntax

new queue()

Arguments

None.

Return value

ClassDescription
queueA new instance of queue class with initial value.

Sample code

queue newQueue = new queue();

Notes

The initial value is an empty queue.

You can limit the class of elements by using "{}" in the fitter.

For example


queue{string} stringQueue = new queue{string}();


The above example limits the elements of the queue to the string class.

If do not use the "{}", will be able to have an instance of any class as a element.

Links for reference

None.

Copyright © Rice All rights reserved.