[#bsl-basic_string-0fb-back-0c2]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic&lowbar;string&lt;char&gt;]::back
:relfileprefix: ../../
:mrdocs:

Return a reference providing non&hyphen;modifiable access to the character at the last position in this string&period; The behavior is undefined if this string is empty&period; Note that the last position is `length() &hyphen; 1`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char const&
back() const;
----


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