how to clear the nested maps

i want to know how to clear the contents in map and list which are in nested like as below
can anyone help me in this.

1
2
3
4
 list<string>my_list;
map<string,my_list > map1;
map<string, map1> map2;
Last edited on
Last edited on
thanks for reply,
If i use the above , it will only for map2 i.e of outer map and is that apply for inner map or not .

and can i use the same for clearing the list right.
Topic archived. No new replies allowed.