Home > Fresh News > std::map – копирование элементов

std::map – копирование элементов

January 14th, 2009 Leave a comment Go to comments
std::map<wstring, wstring> map1;
std::map<wstring, wstring> map2(map1);
std::map<wstring, wstring> map3(map2.begin(), map2.end());

map1.insert(map3.begin(), map3.end());
map2 = map3;
std::copy(map2.begin(), map2.end(), inserter(map1, map1.end()));
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.