diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:43 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:43 +0200 |
| commit | 796609174e5ecb35fab992969e7690186840048a (patch) | |
| tree | 1e4370d47f2a5c050b768c228e73e028a6611cb8 /src/maps/hmap.h | |
| parent | 312fe18cb5f97143f3600b207e979bc559256b6f (diff) | |
tagging ychat-0.7.3ychat-0.7.3
Diffstat (limited to 'src/maps/hmap.h')
| -rw-r--r-- | src/maps/hmap.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/maps/hmap.h b/src/maps/hmap.h index a0824ec..38ea2e4 100644 --- a/src/maps/hmap.h +++ b/src/maps/hmap.h @@ -9,11 +9,6 @@ using namespace std; -// void add_elem( obj_type x, key_type k ) --> Insert x -// void del_elem( key_type k ) --> Remove x -// obj_type get_elem( key_type k ) --> Return item that matches x -// void make_empty( ) --> Remove all items - template <class obj_type, class key_type> class hmap { @@ -77,6 +72,7 @@ public: virtual void make_empty( ); virtual void make_empty( void (*func)(key_type) ); virtual void del_elem ( const key_type &k ); + virtual void rename_key ( const key_type &k1, const key_type &k2 ); virtual obj_type set_elem ( const obj_type &x, const key_type &k ); virtual void run_func( void (*func)(obj_type) ); |
