I have put some kind of pseudocode for the issue I am facing
I have a hybrid map, I want to insert a particular element from this map to another map.
typedef std::map<int,int> MapOfInts;
typedef std::map<int,MapOfInts> HybridMapOfInts;
Last line gives error , is there any efficient simple right way to do this ??Code:int main ()
{
MapOfInts mymap;
MapOfInts mylatmap;
HybridMapOfInts myNewmap;
MapOfInts::iterator it;
HybridMapOfInts::iterator itNew;
mymap[5]=50;
mylatmap[1]=10;
mylatmap[2]=20;
myNewmap.insert(std::make_pair(1, mylatmap) );
itNew = myNewmap.find(1);
//Following gives error, is there any efficient simple right way to do this ??
mymap.insert(itNew->second);
}

