4 lines
121 B
C++
4 lines
121 B
C++
|
auto vec = std::vector<int> {1, 2, 3};
|
||
|
for (auto it = std::begin(vec); it < std::end(vec); it++)
|
||
|
vec.push_back(*it);
|