mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Modernize std::find_if
with ranges
In BTEmu.cpp, `std::mem_fn` was not necessary for the predicate to compile.
This commit is contained in:
parent
6ca7e2856b
commit
e4fb837f4b
24 changed files with 60 additions and 72 deletions
|
@ -84,8 +84,8 @@ SectorReader::~SectorReader()
|
|||
|
||||
const SectorReader::Cache* SectorReader::FindCacheLine(u64 block_num)
|
||||
{
|
||||
auto itr = std::find_if(m_cache.begin(), m_cache.end(),
|
||||
[&](const Cache& entry) { return entry.Contains(block_num); });
|
||||
auto itr =
|
||||
std::ranges::find_if(m_cache, [&](const Cache& entry) { return entry.Contains(block_num); });
|
||||
if (itr == m_cache.end())
|
||||
return nullptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue