I have a container object which contains float*.
struct MyCon{
MyCon(){
matA = new float[10];
matB = new float[10];
}
float *matA;
float *matB;
}
And, I am storing pointers to MyCon objects in a std::map.
map<string, MyCon*> myCon_map;
myCon_map.insert(pair<string,MyCon*>(string("str"), new MyCon()));
Once I am finished with myCon_map, how do I return all memory?