I have a question, if i cleared map1, it will also clear map2 or there will be memory leaks? here is the code.
struct mystruct
{
std::map<int, double> map2;
};
std::map<int, mystruct> map1;
map1.clear();
Thanks.
EDIT: if no memory leaks then both map1 and map2 will be cleared when i clear map1 ?