CircularListTRemoveAt Method

Removes the item from the CircularListT at the specified index.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public void RemoveAt(
	int index
)

Parameters

index  Int32
The zero-based index of the item to remove.

Implements

IListTRemoveAt(Int32)
IListRemoveAt(Int32)

Remarks

Removing an item at the first or last position are O(1) operations. At other positions removal is an O(n) operation, though the method is optimized for not moving more than n/2 elements.

Exceptions

ArgumentOutOfRangeExceptionindex is not a valid index in the CircularListT.

See Also