class MyMap : std::map<char, pro::image>
{
public:
     void MyMethod(char x);
     /** code **/
}
void MyMap::MyMethod(char x)
{
     pro::image my_img; // note that my_img is a local variable
     my_img.LoadFromFile("my_image.png");
     this->insert(std::pair<char, pro::image>(x, my_img)); // stored in the class
}
さて、このコードは安全ですか? 基本的に、いつのコピーをMyMap保存しますか、それとも参照を保存しますか?my_imginsert