This commit is contained in:
Karsten Laux 2021-12-15 18:20:10 +01:00
parent 50aeb42818
commit 622bc3c2e8

View File

@ -27,7 +27,7 @@ public:
// compute [first; last( iterators for sub-range
std::size_t size = bucketSize + remains;
Iterator first = begin + offset;
Iterator last = first + bucketSize + remains;
Iterator last = first + size;
// add appropriate search job
jobList_.push_back(SearchJob<Iterator>(first, last, pattern));
@ -60,7 +60,7 @@ public:
th.join();
}
// collec the results
// collect the results
for (SearchJob<Iterator>& job : jobList_)
{
result_.insert(result_.end(), job.get_result().begin(), job.get_result().end());