How to concat two c++ map
- by Niklas
Hello,
Anybody knows how to concat these two map:
map1: map
map2: map
I just want to add map2 to map1 and keep all elements already in map1 i.e. add map2 at the end of map1.
I'v tried map1.insert(map2.begin(), map2.end()) but it does not work since it overwrites old elements in map1.
thx,
/Niklas