A common pattern with STL containers is this:
map map; for(map::iterator iter = map.begin(); iter != map.end(); ++iter) { .
A future version of the C++ standard (known as C++0x) will introduce a new use for the auto keyword, allowing you to write something like the following:
map map; for(auto iter = map.begin(); iter != map.end(); ++iter) { ... }