Return a non‐modifiable reference to the element at the back.

Synopsis

Declared in <bdlc_queue.h>

T const&
back() const;

Description

Return a reference to the non‐modifiable element at the back of this queue. The reference will remain valid as long as this queue is not destroyed or modified (e.g., via insert, remove, or append). The behavior is undefined if this queue is empty. Note that this function is logically equivalent to: ` operator ‐ 1) `

Return Value

non‐modifiable reference to the back element

Created with MrDocs