my problem probabily was another:
Qt Code:
  1. map<int, Light> lightmap;
  2. lightmap[3] = light();
  3. lightmap[4] = light();.
  4. lightmap[5] = light();
  5. int i = lightmap.size();
  6. printf("ADDING LIGHT dimensione <map> %i\n" ,i); "ADDING LIGHT dimensione <map> %i\n" ,i); //this should print 3
To copy to clipboard, switch view to plain text mode 
now I need to to a thing (but I dont know how):
Qt Code:
  1. int size = lightmap.size();
  2. for (int i=0; i<size; i++) {
  3. lightmap[i].DOSomething();
  4. }
To copy to clipboard, switch view to plain text mode 
here above I need to put in a for a my Light class function; but the for is working on elements 0,1,2; I need to use map with KEY 3,4,5 (they're iserted before).
Are u understand? thanks