C
Christopher Benson-Manica
I would like to know whether calling c_str() for a std::string
repeatedly (with no intervening non-const function on the string)
forces the repopulation of the character array or whether the string
can cache the array. I'm guessing that this is a QOI issue, but I
figured I'd ask anyway.
I realize that I can accomplish the same thing with a const char *
here, but the code looks better without it
repeatedly (with no intervening non-const function on the string)
forces the repopulation of the character array or whether the string
can cache the array. I'm guessing that this is a QOI issue, but I
figured I'd ask anyway.
I realize that I can accomplish the same thing with a const char *
here, but the code looks better without it