Insert an item into the deque at a specified position.
The position is zero-based, with 0 being equivalent to a PushFront(), and Count being equivalent to a PushBack().
Exception Type | Condition |
---|---|
InvalidOperationException | An attempt was made to insert an element into a full deque. |
ArgumentOutOfRangeException | The pos parameter specified a position beyond the deque boundaries. |