| 289 | // The visit_func should have signature Status(const Entry*) |
| 290 | template <typename VisitFunc> |
| 291 | Status VisitEntries(VisitFunc&& visit_func) const { |
| 292 | for (uint64_t i = 0; i < capacity_; i++) { |
| 293 | const auto& entry = entries_[i]; |
| 294 | if (entry) { |
| 295 | RETURN_NOT_OK(visit_func(&entry)); |
| 296 | } |
| 297 | } |
| 298 | return Status::OK(); |
| 299 | } |
| 300 | |
| 301 | protected: |
| 302 | // NoCompare is for when the value is known not to exist in the table |
no test coverage detected