Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 4 and Version 5 of code/howto/STL


Ignore:
Timestamp:
Oct 30, 2008, 9:14:54 PM (15 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/howto/STL

    v4 v5  
    4444
    4545// Iterate through all elements:
    46 for (std::list<type>::iterator = myList.begin(); it != myList.end(); ++it)
     46for (std::list<type>::iterator it = myList.begin(); it != myList.end(); ++it)
    4747{
    4848    std::cout << (*it) << std::endl;
     
    8080
    8181// Iterate through all elements:
    82 for (std::set<type>::iterator = mySet.begin(); it != mySet.end(); ++it)
     82for (std::set<type>::iterator it = mySet.begin(); it != mySet.end(); ++it)
    8383{
    8484    std::cout << (*it) << std::endl;
     
    113113
    114114// Iterate through all elements:
    115 for (std::map<std::string, type>::iterator = myMap.begin(); it != myMap.end(); ++it)
     115for (std::map<std::string, type>::iterator it = myMap.begin(); it != myMap.end(); ++it)
    116116{
    117117    std::cout << it->first << ": " << it->second << std::endl;