Inserts a collection of items at the given index in the Deque. All items at indexes
equal to or greater than index increase their indices in the Deque
by the number of items inserted.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic void InsertRange(
int index,
IEnumerable<T> collection
)
public:
void InsertRange(
int index,
IEnumerable<T>^ collection
)
Parameters
- index
- Type: SystemInt32
The index in the Deque to insert the collection at. After the
insertion, the first item of the inserted collection is located at this index. The
front item in the Deque has index 0. - collection
- Type: System.Collections.GenericIEnumerableT
The collection of items to insert at the given index.
Exceptions
RemarksThe amount of time to insert a collection in the Deque is proportional
to the distance of index from the closest end of the Deque, plus the number of items
inserted (M):
O(M + Min(index, Count - index)).
See Also