I would like to get the bytes a std::string's string occupies in memory, not the number of characters. The string contains a multibyte string. Would std::string::size() do this for me?
std::string
std::string::size()
EDIT: Also, does size() also include the terminating NULL?
size()
NULL
Yes, size() will give you the number of char in the string. One character in multibyte encoding take up multiple char.
char