| 77 | [[nodiscard]] auto has_next() const -> bool { return cur_ < size_; } |
| 78 | |
| 79 | void resize(size_t new_size) { |
| 80 | this->capacity_ = new_size; |
| 81 | data_ = std::vector<AnnCandidate<T>, memory::AlignedAllocator<AnnCandidate<T>>>( |
| 82 | capacity_ + 1 |
| 83 | ); |
| 84 | } |
| 85 | |
| 86 | void copy_results(PID* knn) const { |
| 87 | for (size_t i = 0; i < size_; ++i) { |
no outgoing calls