[#bsl-vectorBase-0bb-operator_subs-01]
= xref:bsl.adoc[bsl]::xref:bsl/vectorBase-0bb.adoc[vectorBase&lt;void*&gt;]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Subscript operators

== Synopses

Declared in `&lt;bslstl&lowbar;vector&period;h&gt;`

Return a reference providing modifiable access to the element at the specified `position` in this vector&period; The behavior is undefined unless `position &lt; size()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vectorBase-0bb/reference.adoc[reference]
xref:bsl/vectorBase-0bb/operator_subs-07.adoc[operator&lsqb;&rsqb;](xref:bsl/vectorBase-06a/size_type.adoc[size&lowbar;type] position);
----

[.small]#xref:bsl/vectorBase-0bb/operator_subs-07.adoc[_» more&period;&period;&period;_]#

Return a reference providing non&hyphen;modifiable access to the element at the specified `position` in this vector&period; The behavior is undefined unless `position &lt; size()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vectorBase-0bb/const_reference.adoc[const&lowbar;reference]
xref:bsl/vectorBase-0bb/operator_subs-06.adoc[operator&lsqb;&rsqb;](xref:bsl/vectorBase-06a/size_type.adoc[size&lowbar;type] position) const;
----

[.small]#xref:bsl/vectorBase-0bb/operator_subs-06.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
