Return a modifiable reference to the value at the back of this queue.

Synopsis

Declared in <bdlc_queue.h>

T&
back();

Description

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

Return Value

modifiable reference to the back element

Created with MrDocs