[#bsl-basic_string-0faf-back-08] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::back :relfileprefix: ../../ :mrdocs: `back` overloads == Synopses Declared in `<bslstl_string.h>` Return a reference providing modifiable access to the character at the last position in this string. The behavior is undefined if this string is empty. Note that the last position is `length() ‐ 1`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CHAR_TYPE& xref:bsl/basic_string-0faf/back-04.adoc[back](); ---- [.small]#xref:bsl/basic_string-0faf/back-04.adoc[_» more..._]# Return a reference providing non‐modifiable access to the character at the last position in this string. The behavior is undefined if this string is empty. Note that the last position is `length() ‐ 1`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CHAR_TYPE const& xref:bsl/basic_string-0faf/back-07.adoc[back]() const; ---- [.small]#xref:bsl/basic_string-0faf/back-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#