Can I make an assumption that given
std::string str; ... // do something to str
Is the following statement is always true?
Some implementations might test for the null character as the first character in the string resulting in a slight speed increase over calculating the size of the string.
I believe that this is not common however.