Summary
A queue whose queued items can be accessed by index. The item at the head of the queue has index 0 and is the next
item to be dequeued.
Generic type parameters
T |
The type of the elements stored in the queue. |
Constructors
| Constructor. |
|
Constructor. |
|
Instance methods
ICollection<T> | |
Returns a read-only wrapper for this collection. Any changes to this collection will be immediately visible
through the wrapper. |
void | | Empties the queue. |
bool | | Not implemented. |
void | CopyTo(T[] array, int arrayIndex) |
Copies all elements to an array, in the order in which they would be dequeued. The destination array must have
enough space for all items. |
T | | Removes and returns the item at the head of the queue. |
void | | Adds an item at the tail of the queue. |
IEnumerator<T> | | Enumerates all items in the queue in the order in which they would be dequeued. |
int | | Not implemented. |
void | | Always throws a NotSupportedException. |
bool | |
void | |
Instance properties
int | |
Gets the current capacity of the queue (that is, the maximum number of items it can store before the internal
store needs to be resized). |
int | | Returns the number of elements in the queue. |
bool | | Always returns false. |
T | |
Accesses the Nth queued item. The next item to be dequeued always has the index 0. The existing items can be
both read and assigned. No new items can be added using this indexer. |