I have two classes, class B comtains a static function "funcEx" which has a pointer as param. funcEx should insert the param data into a map.
Class A uses this funx in order to keep params inside the static map. What would happen after class A is destroyed. Will the memory allocation of "param_name" will be released?
class A{
B::funcEx("param_name");
}
class B{
static map<const char*, int, cmp_str> *Map1 ;
static Map1 = new std::map<const char *, int, cmp_str>();
static funcEx(const char * param){
Map1.insert(param,8)
}
}