jeudi 3 décembre 2020

why do you use the :: operator to declare an iterator for a map, but not to declare the map itself?

When I declare the map:"mymap" I do not need the :: But when I declare an iterator "mymapiterator" then I do need the :: operator, why is that?

map <int, string> mymap;
map < int, string >::iterator mymapiterator;

Aucun commentaire:

Enregistrer un commentaire