I am trying to construct a map that maps a string to a vector of unsigned integers. The way that I construct this map is as follows:
void PixelP1ROCDACSettings::getDACs(map<string,vector<unsigned int>>& dacs) const
{
    dacs.clear();
    dacs.insert(pair<string, vector<unsigned int> > (k_DACName_Vdd, make_vector(Vdd_, k_DACAddress_Vdd)));
    dacs.insert(pair<string, vector<unsigned int> > (k_DACName_Vana,make_vector(Vana_, k_DACAddress_Vana)));
    ...
}
Where make_vector is defined as follows:
   std::vector<unsigned int> make_vector(unsigned int DACValue, 
                                         unsigned int DACAddress) const ;
My questions are:
1) I would like to get access each individual value in my vector, I've tried to do, 
dacs[key][index] but that didn't seem to work.  Is there a special syntax to do this?
2) Additionally, I would like to iterate across my map, How would I do that?
Thanks in advance.
 
     
    