| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected