[#bsl-vectorBase-06-at-0c2]
= xref:bsl.adoc[bsl]::xref:bsl/vectorBase-06.adoc[vectorBase]::at
:relfileprefix: ../../
:mrdocs:

Return a non&hyphen;modifiable reference to the element at `position`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vectorBase-06/const_reference.adoc[vectorBase&lt;VALUE&lowbar;TYPE&gt;::const&lowbar;reference]
at(xref:bsl/vectorBase-06/size_type.adoc[size&lowbar;type] position) const;
----

== Description

Return a reference providing non&hyphen;modifiable access to the element at the specified `position` in this vector&period; Throw a `bsl&colon;&colon;out&lowbar;of&lowbar;range` exception if `position &gt;&equals; size()`&period;

== Return Value

non&hyphen;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]#
