// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <map>

using namespace std;

int main()
{
   map<int,int> m;
   for(int i=0;i<1000000000;i++)
   {
      pair<int,int> p(i,i+1);
      m.insert(p);
      if(((i+1)%1000000)==0) cout << (i+1) << " inserted" << endl;
   }
   return 0;
}
