MCPcopy Create free account
hub / github.com/NetSys/bess / CompileTimeInstantiation

Function CompileTimeInstantiation

core/utils/cuckoo_map_test.cc:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98template<typename T>
99void 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
115TEST(CuckooMap, TypeSupport) {
116 // Standard containers, such as std::map and std::vector, should be able to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected