Luna::BasicString::front

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

Gets the first character of the string.

The first character is the character with index 0.

Return value

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

Valid Usage

  • empty must be false when calling this function.