VERY experimental Nintendo Switch 2 emulator
C++
shader_cache: Make use of std::erase_if
Lioncash7d3ba83dde48
diff --git a/src/video_core/shader_cache.h b/src/video_core/shader_cache.hindex b7608fc7bc..015a789d68 100644--- a/src/video_core/shader_cache.h+++ b/src/video_core/shader_cache.h@@ -209,11 +209,11 @@ private:}// Remove them from the cache- const auto is_removed = [&removed_shaders](std::unique_ptr<T>& shader) {+ const auto is_removed = [&removed_shaders](const std::unique_ptr<T>& shader) {return std::find(removed_shaders.begin(), removed_shaders.end(), shader.get()) !=removed_shaders.end();};- storage.erase(std::remove_if(storage.begin(), storage.end(), is_removed), storage.end());+ std::erase_if(storage, is_removed);}/// @brief Creates a new entry in the lookup cache and returns its pointer