[#bsl-vectorBase-09-operator_subs-036] = xref:bsl.adoc[bsl]::xref:bsl/vectorBase-09.adoc[vectorBase<bool>]::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-09/reference.adoc[reference] xref:bsl/vectorBase-09/operator_subs-0c.adoc[operator[]](xref:bsl/vectorBase-06a/size_type.adoc[size_type] position); ---- [.small]#xref:bsl/vectorBase-09/operator_subs-0c.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-09/const_reference.adoc[const_reference] xref:bsl/vectorBase-09/operator_subs-039.adoc[operator[]](xref:bsl/vectorBase-06a/size_type.adoc[size_type] position) const; ---- [.small]#xref:bsl/vectorBase-09/operator_subs-039.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#