mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Modernize std::equal
with ranges
This commit is contained in:
@ -191,8 +191,7 @@ void FIFOAnalyzer::UpdateTree()
|
||||
// We shouldn't end on a Command (it should end with an EFB copy)
|
||||
ASSERT(part_start == frame_info.parts.size());
|
||||
// The counts we computed should match the frame's counts
|
||||
ASSERT(std::equal(frame_info.part_type_counts.begin(), frame_info.part_type_counts.end(),
|
||||
part_counts.begin()));
|
||||
ASSERT(std::ranges::equal(frame_info.part_type_counts, part_counts));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,8 +53,7 @@ struct TwoPointCalibration
|
||||
}
|
||||
else
|
||||
{
|
||||
return std::equal(std::begin(max.data), std::end(max.data), std::begin(zero.data),
|
||||
std::not_equal_to<>());
|
||||
return std::ranges::equal(max.data, zero.data, std::ranges::not_equal_to{});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user