Is it correct method to have map within struct and then having array of structure.
struct node { //struct node
std::map<int ,int> mymap;//stl map within struct
};
struct node n[10]; //array of struct node
Then how to initialise n and refer to map within it? How to have iterator to map within struct that is mymap? any best way?
mymapis default construct so is empty (it is valid).