Search code examples
c++stldictionarymultimap

How i able to link following data


i have issues to link 3 element (s start, stop) together in the following code.

 map <int, int> (start, stop) startomap;
 map <unsigned, <int, int> > (n1, startomap);
 map <string, unsigned> (s, n1) m3;

from m3 i am able to link string and n1, how i set-up a map < string, > (s, startomap) m4; and at the same time make sure the 1 to 1 relationship between s -> n-> start->to Thanks a lot!


Solution

  • Do you want this?

    map <int, int>  startomap;
    map<unsigned, map<int, int> > n1startomap;
    map <string, map<unsigned, map<int, int> > > sn1startmap;