MCPcopy Create free account
hub / github.com/Tessil/ordered-map / operator()

Method operator()

tests/ordered_map_tests.cpp:1481–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1479 // 'x-1'. Make sure that KeyEqual is called (and not ==).
1480 struct hash {
1481 std::size_t operator()(std::uint64_t v) const {
1482 if (v % 2u == 1u) {
1483 return std::hash<std::uint64_t>()(v - 1);
1484 } else {
1485 return std::hash<std::uint64_t>()(v);
1486 }
1487 }
1488 };
1489
1490 struct key_equal {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected