[#bsl-vectorBase-06-operator_subs-0d] = xref:bsl.adoc[bsl]::xref:bsl/vectorBase-06.adoc[vectorBase]::operator[] :relfileprefix: ../../ :mrdocs: Return a reference to the element at the specified 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] operator[](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. The behavior is undefined unless `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]#