phd/assets/dash-3d-implementation/undefined-behaviour-it.cpp

4 lines
121 B
C++
Raw Normal View History

2019-09-25 17:18:35 +02:00
auto vec = std::vector<int> {1, 2, 3};
for (auto it = std::begin(vec); it < std::end(vec); it++)
vec.push_back(*it);