Luna::BasicString::data

BasicString< _Char, _Alloc >::const_pointer data() const

Gets one constant pointer to the underlying character data.

Return value

Returns one constant pointer to the underlying character data. The returned pointer may be nullptr if the string is empty, to ensure one non-null return value, use c_str instead, which always return one valid but empty string buffer ("") if the string is empty.