I was reading the documentation of string::length
and, as you can see, it says that
Returns the length of the string, in terms of bytes.
So my question is, is this ensured to be also the number of char that it contains?
I know that usually a char
is 1 byte
, but is this ensured somewhere? Like in the standard or somewhere else?