Luna::RingDeque::back

const_reference back() const

Gets the element at the back of the queue.

The back element is the element with index size() - 1.

Return value

Returns one constant reference to the back element of the queue.

Valid Usage

  • empty must be false when calling this function.