Hello..
Whats wrong with that code:
Thanks a lot for helpCode:map <string, vector <string> > smp; string n = "somestr"; map <string, vector <string> >::const_iterator v_it; if ( (v_it = smp.find(n) ) != smp.end() ) { vector <string> cm = v_it->second; //the critic line }
Kind regards