SHARE
TWEET

Mixed iterators

Archon Nov 28th, 2010 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top