voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
hashMap.hpp
1 #ifndef BLUB_CORE_HASHMAP_HPP
2 #define BLUB_CORE_HASHMAP_HPP
3 
4 #include <blub/core/globals.hpp>
5 
6 #include <unordered_map>
7 #include <utility>
8 #include <boost/functional/hash.hpp>
9 
10 
11 namespace blub
12 {
13 
14 
15 template <class S,
16  class T,
17  class H,// = boost::hash<S>,
18  class P,// = std::equal_to<S>,
19  class A// = std::allocator<std::pair<const S, T> >
20  >
21 class hashMap : public std::unordered_map<S, T, H, P, A>
22 {
23 public:
24  typedef std::unordered_map<S, T, H, P, A> t_base;
25 
26 
27  hashMap<S, T, H, P, A>() : t_base() {;}
28  hashMap<S, T, H, P, A>(const typename t_base::size_type& size) : t_base(size) {;}
29 
30  void insert(const typename t_base::key_type& key, const typename t_base::mapped_type& value)
31  {
32  t_base::operator [](key) = value;
33  }
34 };
35 
36 
37 }
38 
39 
40 #endif // BLUB_CORE_HPP
Definition: hashMap.hpp:21
Definition: deadlineTimer.hpp:10