23 #if (__cplusplus >= 201103L) || defined(_MSC_VER) // Visual Studio
24 #include <unordered_map>
25 #include <unordered_set>
26 #if defined(_MSC_VER) && (_MSC_VER >= 1500 && _MSC_VER < 1600) // VS 2008
27 #define TessHashMap std::tr1::unordered_map
28 #define TessHashSet std::tr1::unordered_set
30 #define TessHashMap std::unordered_map
31 #define TessHashSet std::unordered_set
33 #define SmartPtr std::unique_ptr
34 #define HAVE_UNIQUE_PTR
36 #elif (defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ > 0)) || \
37 __GNUC__ >= 4)) // gcc
39 #include <ext/hash_map>
40 #include <ext/hash_set>
41 using __gnu_cxx::hash_map;
42 using __gnu_cxx::hash_set;
43 #define TessHashMap __gnu_cxx::hash_map
44 #define TessHashSet __gnu_cxx::hash_set
48 #define TessHashMap hash_map
49 #define TessHashSet :hash_set
52 #ifndef HAVE_UNIQUE_PTR
78 #endif // HAVE_UNIQUE_PTR
bool operator==(const T *ptr) const