I would like to copy the content of one std::map into another. Can I use std::copy for that? Obviously, the following code won\'t work:
std::copy
int main
You can use GMan's answer --- but the question is, why do you want to use std::copy? You should use the member function std::map::insert instead.
m2.insert(m1.begin(), m1.end());