|
@@ -277,7 +277,7 @@ class dense_map {
|
|
|
[[nodiscard]] auto constrained_find(const Other &key, std::size_t bucket) {
|
|
[[nodiscard]] auto constrained_find(const Other &key, std::size_t bucket) {
|
|
|
for(auto it = begin(bucket), last = end(bucket); it != last; ++it) {
|
|
for(auto it = begin(bucket), last = end(bucket); it != last; ++it) {
|
|
|
if(packed.second()(it->first, key)) {
|
|
if(packed.second()(it->first, key)) {
|
|
|
- return begin() + static_cast<typename iterator::difference_type>(it.index());
|
|
|
|
|
|
|
+ return begin() + static_cast<difference_type>(it.index());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -288,7 +288,7 @@ class dense_map {
|
|
|
[[nodiscard]] auto constrained_find(const Other &key, std::size_t bucket) const {
|
|
[[nodiscard]] auto constrained_find(const Other &key, std::size_t bucket) const {
|
|
|
for(auto it = cbegin(bucket), last = cend(bucket); it != last; ++it) {
|
|
for(auto it = cbegin(bucket), last = cend(bucket); it != last; ++it) {
|
|
|
if(packed.second()(it->first, key)) {
|
|
if(packed.second()(it->first, key)) {
|
|
|
- return cbegin() + static_cast<typename const_iterator::difference_type>(it.index());
|
|
|
|
|
|
|
+ return cbegin() + static_cast<difference_type>(it.index());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|