I have some legacy code which uses (*pos).second to get a structure:
std::map<std::string, TMyStruct> TMyStructMap;
TMyStructMap infoMap;
TMyStructMap::const_iterator pos = infoMap.begin();
// then later somewhere
TMyStruct x = (*pos).second;
Isn't this the same as: TMyStruct x = pos->second
?
If so, any advantage or style reason for doing one over the other?