我想要得到一个std::string的字符串在内存中所占的字节数,而不是字符数。这个字符串包含一个多字节的字符串。std::string::size()能帮我做到这一点吗?
std::string
std::string::size()
编辑:另外,size()是否也包括终止NULL
size()
NULL
https://stackoverflow.com/questions/6235555
相似问题