MCPcopy Create free account
hub / github.com/Tessil/ordered-map / hash_str_diff

Class hash_str_diff

tests/ordered_map_tests.cpp:1407–1411  ·  view source on GitHub ↗

insert x values; serialize map; deserialize in new map which has a different hash; check equal

Source from the content-addressed store, hash-verified

1405 // insert x values; serialize map; deserialize in new map which has a
1406 // different hash; check equal
1407 struct hash_str_diff {
1408 std::size_t operator()(const std::string& str) const {
1409 return std::hash<std::string>()(str) + 123;
1410 }
1411 };
1412
1413 const std::size_t nb_values = 1000;
1414

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected