Advertisement
Archon

Mixed iterators

Nov 28th, 2010
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <vector>
  2. int main(){
  3.    std::vector<int> v, w(5, 6);
  4.    v.push_back(1);
  5.    v.push_back(2);
  6.    v.push_back(3);
  7.    v.push_back(4);
  8.    v.push_back(5);
  9.    v.erase(++ ++ w.begin());
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement