Unnamed
public text v1 · immutable template<typename Z, class T>
T getEntryFromHashMap (Z id, hash_map<Z, T>* hashMap)
{
// Search the entry in the hashMap
if (hashMap)
{
hash_map<Z, T>::iterator hashMapIterator;
hashMapIterator = hashMap->find (id);
if (hashMapIterator != hashMap->end())
{
// Found it
return hashMapIterator->second;
}
}
return NULL;
}