What's the difference between istringstream, ostringstream and stringstream? / Why not use stringstream in every case?

后端 未结 8 1771
春和景丽
春和景丽 2020-12-02 04:48

When would I use std::istringstream, std::ostringstream and std::stringstream and why shouldn\'t I just use std::stringstream

8条回答
  •  一个人的身影
    2020-12-02 05:08

    Why open a file for read/write access if you only need to read from it, for example?

    What if multiple processes needed to read from the same file?

提交回复
热议问题