summaryrefslogtreecommitdiff
path: root/src/maps/nhashmap.tmpl
blob: 422ea2f8de875e283d3403ae2b5762c00253676b (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;
}