| 97 | |
| 98 | template<typename T> |
| 99 | void CompileTimeInstantiation() { |
| 100 | std::map<int, T> m1; |
| 101 | std::map<T, int> m2; |
| 102 | std::map<T, T> m3; |
| 103 | std::unordered_map<int, T> u1; |
| 104 | std::unordered_map<T, int> u2; |
| 105 | std::unordered_map<T, T> u3; |
| 106 | std::vector<T> v1; |
| 107 | |
| 108 | // FIXME: currently, CuckooMap does not support types without a default |
| 109 | // constructor. The following will fail with the current code. |
| 110 | // CuckooMap<int, T> c1; |
| 111 | // CuckooMap<T, int> c2; |
| 112 | // CuckooMap<T, T> c3; |
| 113 | } |
| 114 | |
| 115 | TEST(CuckooMap, TypeSupport) { |
| 116 | // Standard containers, such as std::map and std::vector, should be able to |
nothing calls this directly
no outgoing calls
no test coverage detected