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.
length() - 1
Declared in <bslstl_string.h>
<bslstl_string.h>
char& back();