Modernize std::equal with ranges

This commit is contained in:
mitaclaw
2024-09-21 23:46:43 -07:00
parent 4cc5e1972a
commit 249defa72b
3 changed files with 6 additions and 8 deletions

View File

@ -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));
}
}