[#bsl-vectorBase-06-at-0c2] = xref:bsl.adoc[bsl]::xref:bsl/vectorBase-06.adoc[vectorBase]::at :relfileprefix: ../../ :mrdocs: Return a non‐modifiable reference to the element at `position`. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vectorBase-06/const_reference.adoc[vectorBase<VALUE_TYPE>::const_reference] at(xref:bsl/vectorBase-06/size_type.adoc[size_type] position) const; ---- == 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 [cols="1,4"] |=== | Name| Description | *position* | element position or insertion point |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#