insertFront method

void insertFront(
  1. T element
)

Inserts an element at the front of the deque.

Implementation

void insertFront(T element) {
  _queue.addFirst(element);
}