All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tr1.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 // Todo: this file should eventually be deleted. It existed to bridge C++03/11 support, but C++03
6 // support has been removed, so we can just directly include the C++11 headers from now on.
7 #include <unordered_set>
8 #include <unordered_map>
9 #include <functional>
10 #include <memory>
11 
12 namespace Eegeo
13 {
14  template <class T>
15  struct unordered_set {
16  typedef std::unordered_set<T> type;
17  };
18 
19  template <class K, class V>
21  typedef std::unordered_multimap<K,V> type;
22  };
23 
24  template <class K, class V, class H=std::hash<K>>
25  struct unordered_map {
26  typedef std::unordered_map<K,V,H> type;
27  };
28 
29  template <class T>
30  struct hash {
31  typedef std::hash<T> type;
32  };
33 
34  template <class T>
35  struct shared_ptr {
36  typedef std::shared_ptr<T> type;
37  };
38 }