Adds an item to the front of the Deque. The indices of all existing items
in the Deque are increased by 1. This method is
equivalent to Insert(0, item) but is a little more
efficient.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic void AddToFront(
T item
)
public:
void AddToFront(
T item
)
Parameters
- item
- Type: T
The item to add.
RemarksAdding an item to the front of the Deque takes
a small constant amount of time, regardless of how many items are in the Deque.
See Also