I have the following two maps:
map< string, list < string > > map1;
map< string, list < string > > map2;
I populated map1
with the following content:
1. kiran; c:\pf\kiran.mdf, c:\pf\kiran.ldf
2. test; c:\pf\test.mdf, c:\pf\test.mdf
Then I copied the content of map1
into map2
as follows:
map2 = map1;
Then I filled map1
again with the following new content:
1. temp; c:\pf\test.mdf, c:\pf\test.ldf
2. model; c:\model\model.mdf, c:\pf\model.ldf
Now I have to append this content to map2
. I cannot use map2 = map1;
, because this will overwrite the existing content in map2
. So, how can I do this?