Luna::BasicString::back

BasicString< _Char, _Alloc >::const_reference back() const

Gets the last character of the string.

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

Return value

Returns one constant reference to the last character of the string.

Valid Usage

  • empty must be false when calling this function.