mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 19:55:46 +00:00
freezer: Make use of std::erase_if
With C++20 we can simplify the erasing idiom.
This commit is contained in:
parent
f0be76a50a
commit
b67eb6746b
1 changed files with 1 additions and 4 deletions
|
@ -107,10 +107,7 @@ void Freezer::Unfreeze(VAddr address) {
|
|||
|
||||
LOG_DEBUG(Common_Memory, "Unfreezing memory for address={:016X}", address);
|
||||
|
||||
entries.erase(
|
||||
std::remove_if(entries.begin(), entries.end(),
|
||||
[&address](const Entry& entry) { return entry.address == address; }),
|
||||
entries.end());
|
||||
std::erase_if(entries, [address](const Entry& entry) { return entry.address == address; });
|
||||
}
|
||||
|
||||
bool Freezer::IsFrozen(VAddr address) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue