How to get length of std::stringstream without copying

前端 未结 0 711
时光取名叫无心
时光取名叫无心 2021-02-11 16:31

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

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