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

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

  return NULL;
}