I'm learning c++ newly, and can't figure out the iterator... for instance, I have the code below with a map and, despite research, can't figure out the .end(), iterator it as well as first
   std::map<int, double> e;
    e[1] = 10.0;
    e[2] = 20.0;
    e[3] = 30.0;
    e[4] = 40.0;
    map<int, double>::iterator it;
    
    it = e.end();
    it--;
    int d = 1.0*it->first / 50000;
Could someone indicates me the meaning of each step of this code, from the map initialization to the last line ! Thanks !
 
     
    