Marine Library  1.0
C++ library for Linux Networking Development
hash_set.hh
1 //TODO: not finish
2 #error "this file is not finish yet!"
3 
4 #ifndef DOZERG_HASH_SET_H_20130403
5 #define DOZERG_HASH_SET_H_20130403
6 
7 #include "hash_table.hh"
8 
9 NS_SERVER_BEGIN
10 
11 template<
12  typename T,
13  class EmptyKey,
14  template<typename>class HashKey = CHashFn,
15  template<typename>class EqualKey = std::equal_to
17 {
20 public:
21  typedef typename __HashTable::value_type value_type;
22  typedef typename __HashTable::pointer pointer;
23  typedef typename __HashTable::const_pointer const_pointer;
24  typedef typename __HashTable::reference reference;
25  typedef typename __HashTable::const_reference const_reference;
26  typedef typename __HashTable::size_type size_type;
27  typedef typename __HashTable::difference_type difference_type;
28  typedef typename __HashTable::key_type key_type;
29  typedef EmptyKey key_empty;
30  typedef HashKey<
31  typename COmitCV<key_type>::result_type> hasher;
32  typedef EqualKey<key_type> key_equal;
33 private:
34  __HashTable ht_;
35 };
36 
37 NS_SERVER_END
38 
39 #endif
40 
Definition: hash_table.hh:70
Definition: template.hh:174
Definition: hash_set.hh:16