How to get length of std::stringstream without copying

前端 未结 0 1166
予麋鹿
予麋鹿 2021-02-11 16:34

How can I get the length in bytes of a stringstream.

stringstream.str().length();

would copy the contents into std::string. I don\'t want to

相关标签:
回答
  • 消灭零回复
提交回复
热议问题