Return a non‐modifiable reference to the element at position.

Synopsis

Declared in <bslstl_vector.h>

Description

Return a reference providing non‐modifiable access to the element at the specified position in this vector. Throw a bsl::out_of_range exception if position >= size().

Return Value

non‐modifiable reference to the element at position

Parameters

Name

Description

position

element position or insertion point

Created with MrDocs