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

`back` overloads

== Synopses

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

Return a reference providing 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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char&
xref:bsl/basic_string-0fb/back-04.adoc[back]();
----

[.small]#xref:bsl/basic_string-0fb/back-04.adoc[_» more&period;&period;&period;_]#

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char const&
xref:bsl/basic_string-0fb/back-0c2.adoc[back]() const;
----

[.small]#xref:bsl/basic_string-0fb/back-0c2.adoc[_» more&period;&period;&period;_]#


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