18 #ifndef LUNCHBOX_HASH_H 19 #define LUNCHBOX_HASH_H 21 #include <lunchbox/refPtr.h> 23 #include <unordered_map> 28 template <
class K,
class T>
29 class PtrHash :
public std::unordered_map<K, T, std::hash<const void*> >
38 return std::hash<const void*>()(key.
get());
43 template <
class K,
class T>
44 class RefPtrHash :
public std::unordered_map<RefPtr<K>, T, hashRefPtr<K> >
48 #endif // LUNCHBOX_HASH_H
Abstraction layer and common utilities for multi-threaded programming.
A smart reference pointer, aka boost::intrusive_ptr.