Return a non‐modifiable reference to the element at the front.
Synopsis
Declared in <bdlc_queue.h>
T const&
front() const;
Description
Return a reference to the non‐modifiable element at the front 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 `
Return Value
non‐modifiable reference to the front element
Created with MrDocs