[Solved] C++: Can’t understand this code

typedef typename vector<Location>::iterator iterator; This defines a new type alias iterator which maps to vector<Location>::iterator. The typedef itself isn’t actually used in this piece of code though. unordered_map<Location, vector<Location> > edges; This defines an std::unordered_map http://www.cplusplus.com/reference/unordered_map/unordered_map/ edges in which Location (which is the templated type) is the Key value and an std::vector of Locations is … Read more