Handling Non-Null Terminated Strings
A string_view works well with null-terminated strings. Let's see what happens when we point it to a substring which does not have a null character at the end.
We'll cover the following...
We'll cover the following...
If you get a string_view from a string then it will point to a null-terminated chunk of memory:
The two cout statements will both print 11. ...