1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

Refactor: Change the AK::binary_search signature to use AK::Span.

This commit is contained in:
asynts 2020-07-26 11:22:05 +02:00 committed by Andreas Kling
parent ac9c2bc492
commit 707d92db61
5 changed files with 20 additions and 19 deletions

View file

@ -174,7 +174,7 @@ void RangeAllocator::deallocate(Range range)
int nearby_index = 0;
auto* existing_range = binary_search(
m_available_ranges.data(), m_available_ranges.size(), range, [](auto& a, auto& b) {
m_available_ranges.span(), range, [](auto& a, auto& b) {
return a.base().get() - b.end().get();
},
&nearby_index);