[#bsl-basic_string-0faf-at-01]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::at
:relfileprefix: ../../
:mrdocs:

`at` overloads

== Synopses

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

Return a reference providing modifiable access to the character at the specified `position` in this string&period; Throw `out&lowbar;of&lowbar;range` if `position &gt;&equals; length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0faf/reference.adoc[reference]
xref:bsl/basic_string-0faf/at-09.adoc[at](xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type] position);
----

[.small]#xref:bsl/basic_string-0faf/at-09.adoc[_» more&period;&period;&period;_]#

Return a reference providing non&hyphen;modifiable access to the character at the specified `position` in this string&period; Throw `out&lowbar;of&lowbar;range` if `position &gt;&equals; length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0faf/const_reference.adoc[const&lowbar;reference]
xref:bsl/basic_string-0faf/at-0b.adoc[at](xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type] position) const;
----

[.small]#xref:bsl/basic_string-0faf/at-0b.adoc[_» more&period;&period;&period;_]#


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