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

Class key_equal

tests/ordered_map_tests.cpp:1490–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1488 };
1489
1490 struct key_equal {
1491 bool operator()(std::uint64_t lhs, std::uint64_t rhs) const {
1492 if (lhs % 2u == 1u) {
1493 lhs--;
1494 }
1495
1496 if (rhs % 2u == 1u) {
1497 rhs--;
1498 }
1499
1500 return lhs == rhs;
1501 }
1502 };
1503
1504 tsl::ordered_map<std::uint64_t, std::uint64_t, hash, key_equal> map;
1505 BOOST_CHECK(map.insert({2, 10}).second);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected