How to create a vector by transforming a stream?

后端 未结 0 1826
日久生厌
日久生厌 2020-12-29 19:59

I know that I can fill a vector from a range of iterators like this,

std::string line = "1 2 3 4 5";
std::istringstream input(line);
std::istream_it         


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