#include <iostream>
#include <map>
int main() {
int obj = 2;
int * ref = &obj;
std::map<char, int *> map;
map['q'] = ref;
std::cout << "map['q']: " << map['q'] << "\n";
map.clear();
std::cout << "---\nref: " << ref << "\nobj: " << obj
<< "\nmap['q']: " << map['q'];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgoKaW50IG1haW4oKSB7CglpbnQgb2JqID0gMjsKCWludCAqIHJlZiA9ICZvYmo7CglzdGQ6Om1hcDxjaGFyLCBpbnQgKj4gbWFwOwoJbWFwWydxJ10gPSByZWY7CglzdGQ6OmNvdXQgPDwgIm1hcFsncSddOiAiIDw8IG1hcFsncSddIDw8ICJcbiI7CgltYXAuY2xlYXIoKTsKCXN0ZDo6Y291dCA8PCAiLS0tXG5yZWY6ICIgPDwgcmVmIDw8ICJcbm9iajogIiA8PCBvYmoKCQkJICA8PCAiXG5tYXBbJ3EnXTogIiA8PCBtYXBbJ3EnXTsKCXJldHVybiAwOwp9