I have a map
declared as follows:
map < string , list < string > > mapex ; list< string > li;
How can I disp
I'd try the following
void dump_list(const std::list& l) {
for ( std::list::const_iterator it = l.begin(); l != l.end(); l++ ) {
cout << *l << endl;
}
}
void dump_map(const std::map>& map) {
for ( std::map>::const_iterator it = map.begin(); it != map.end(); it++) {
cout << "Key: " << it->first << endl;
cout << "Values" << endl;
dump_list(it->second);
}