queue class : queue() fitter

Description

Get an instance with initial value.

Syntax

new queue()

Arguments

None.

Return value

ClassDescription
queueAn instance 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.