Return a modifiable reference to the element at the specified index.
Synopsis
Declared in <bdlc_queue.h>
T&
operator[](int index);
Description
Return a reference to the 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().
Return Value
modifiable reference to the element at index
Parameters
Name |
Description |
index |
position of the element to access |
Created with MrDocs