MCPcopy Create free account
hub / github.com/apache/tvm-ffi / PrintMap

Function PrintMap

tests/cpp/test_map.cc:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266template <typename K, typename V>
267void PrintMap(const Map<K, V>& m0) {
268 std::cout << "{";
269 for (auto it = m0.begin(); it != m0.end(); ++it) {
270 if (it != m0.begin()) {
271 std::cout << ", ";
272 }
273 std::cout << (*it).first << ": " << (*it).second;
274 }
275 std::cout << "}" << std::endl;
276}
277
278TEST(Map, MapInsertOrder) {
279 // test that map preserves the insertion order

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected