c++ - 为什么 param 在以下情况下需要两个参数 :

标签 c++

我有点困惑:

 istream_iterator<string> ii(is);
 istream_iterator<string> eos; 
 vector<string> param (ii, eos); 

最佳答案

开始和结束迭代器。空的 istream_iterator 表示输入结束。

关于c++ - 为什么 param 在以下情况下需要两个参数 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/631145/

相关文章:

c++ - 为什么不调用覆盖的 `operator new`?

C++ : How to ensure that a class member variable is modifiable only within a certain method

c++ - 我的播放器类中的 getter 和 setter 问题

c++ - 重载解决算法中的歧义是如何确定的?

c++ - 无法在 Windows API 中实现仪表

python - 检查 PyObjects C 类型

C++/WinInet 更改代理设置 Windows 7

c++ - glOrtho 制作顶 View 的正确参数是什么?

c++ - 调试时出现 "myapp.exe has triggered a breakpoint"- 之后 Visual Studio 2015 Update 3 中的符号加载速度缓慢

android - Android 上的原生声音库实际上可以改变音高吗?