如何删除 ostringstream 的前 n 个字节?
我基本上必须查看有多少字节通过套接字,如果它没有完全通过......我必须删除所有通过的内容
最佳答案
按照您说的做:删除前 n 个字节?
ostr.str(ostr.str().substr(n))
关于c++ - 从 ostringstream 中删除字节,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3657269/