[#bsl-vectorBase-08-operator_subs-0e] = xref:bsl.adoc[bsl]::xref:bsl/vectorBase-08.adoc[vectorBase<unsigned int>]::operator[] :relfileprefix: ../../ :mrdocs: Subscript operators == Synopses Declared in `<bslstl_vector.h>` Return a reference providing modifiable access to the element at the specified `position` in this vector. The behavior is undefined unless `position < size()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vectorBase-08/reference.adoc[reference] xref:bsl/vectorBase-08/operator_subs-0f.adoc[operator[]](xref:bsl/vectorBase-06a/size_type.adoc[size_type] position); ---- [.small]#xref:bsl/vectorBase-08/operator_subs-0f.adoc[_» more..._]# Return a reference providing non‐modifiable access to the element at the specified `position` in this vector. The behavior is undefined unless `position < size()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vectorBase-08/const_reference.adoc[const_reference] xref:bsl/vectorBase-08/operator_subs-07.adoc[operator[]](xref:bsl/vectorBase-06a/size_type.adoc[size_type] position) const; ---- [.small]#xref:bsl/vectorBase-08/operator_subs-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#