Luna::BasicString::back

BasicString< _Char, _Alloc >::reference back()

Gets the last character of the string.

The last character is the character with index size() - 1.

Return value

Returns one reference to the last character of the string.

Valid Usage

  • empty must be false when calling this function.