Luna::BasicString::at
BasicString< _Char, _Alloc >::const_reference at(usize n) const
Gets the character at the specified index.
Parameters
-
in n
The index of the character.
Return value
Returns one constant reference to the character at the specified index.
Valid Usage
-
empty must be
false
when calling this function. -
n
must be in range [0
,size()
).