summaryrefslogtreecommitdiff
path: root/src/maps/nhashmap.tmpl
blob: 0cba2fdc421bae243d29d4dfa799af6749a6d94c (plain)
1
2
3
4
5
6
7
8
9
10
11
template<class obj_type>
obj_type
nhashmap<obj_type>::get_elem(string s_key)
{
  typename hashmap<obj_type>::iterator iter = this->find(s_key); 

  if ( iter != this->end() )
    return iter->second; 

  return NULL; 
}