📜  back_inserter 与 push_back - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:57.588000             🧑  作者: Mango

代码示例1
std::vector a(100, "Hello, World");
std::vector b;
std::copy(a.begin(), a.end(), std::back_inserter(b));