Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

Deque<(Of <(<'T>)>)>..::..RemoveAt Method

Removes the item at the given index in the Deque. All items at indexes greater than index move down one index in the Deque.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public void RemoveAt(
	int index
)
Public Sub RemoveAt ( _
	index As Integer _
)
public:
void RemoveAt(
	int^ index
)

Parameters

index
Type: Int32
The index in the list to remove the item at. The first item in the list has index 0.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or greater than or equal to Count.

Remarks


The amount of time to delete an item in the Deque is proportional to the distance of index from the closest end of the Deque: O(Min(index, Count - 1 - index)). Thus, deleting an item at the front or end of the Deque is always fast; the middle of of the Deque is the slowest place to delete.