insertLast method

void insertLast(
  1. T element
)

Inserts an element at the last (rear) of the deque.

Implementation

void insertLast(T element) {
  _queue.addLast(element);
}