summaryrefslogtreecommitdiff
path: root/src/maps/nmap.h
blob: e29da3be78e0f9f91ace8fe445f3ae642fabf842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "../incl.h"

#ifndef NMAP_H
#define NMAP_H

#include "smap.h"

template <class obj_type, class key_type>
class nmap : public smap<obj_type, key_type>
{
 public:
    nmap( double moc );
    ~nmap();

    // Override the get_elem method so that a new object
    // will be returned if the required element is not in
    // the map!
    obj_type get_elem ( const key_type &k );
};

#include "nmap.tmpl"
#endif