vector<map<string, string> >::iterator ?
Bonjour � tous :)
J'essaie d'it�rer sur un container de type vector<map<string, string> >::iterator et je n'y arrive pas. Voila ce que j'essaie:
Code:
1 2
| for(vector<map<string, string> >::iterator itx = vmx.begin(); itx != vmx.end(); ++itx)
cout << itx->first << " " << itx->second << endl; |
Mais le compilateur me dit que first et second n'existent pas... Je souhaiterais acc�der aux cl�s et valeur de chaque map, en parcourant le vector.
Auriez-vous une id�e ?
Merci d'avance :)