Return a non‐modifiable reference to the element at position.
Synopsis
Declared in <bdlcc_deque.h>
TYPE const&
operator[](size_type position) const;
Description
Return a reference providing non‐modifiable access to the element at the specified position in the bsl::deque held by this proctor. The behavior is undefined unless position < size where size is the number of elements in that deque.
Return Value
a non‐modifiable reference to the element at position
Parameters
Name |
Description |
position |
zero‐based index of the element |
Created with MrDocs