Return a non-modifiable reference to the element at index.
Declared in <bdlc_queue.h>
T const&
operator[](int index) const;
Return a reference to the non-modifiable element at the specified index position in 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 unless 0 <= index < length().
non-modifiable reference to the element at index
| Name | Description |
|---|---|
| index | position of the element to access |