mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Modernize std::any_of
with ranges
In WiimoteReal.cpp, JitRegCache.cpp, lambda predicates were replaced by pointers to member functions because ranges algorithms are able invoke those. In ConvertDialog.cpp, the `std::mem_fn` helper was removed because ranges algorithms are able to handle pointers to member functions as predicates.
This commit is contained in:
@ -929,8 +929,8 @@ void VulkanContext::DisableDebugUtils()
|
||||
|
||||
bool VulkanContext::SupportsDeviceExtension(const char* name) const
|
||||
{
|
||||
return std::any_of(m_device_extensions.begin(), m_device_extensions.end(),
|
||||
[name](const std::string& extension) { return extension == name; });
|
||||
return std::ranges::any_of(m_device_extensions,
|
||||
[name](const std::string& extension) { return extension == name; });
|
||||
}
|
||||
|
||||
static bool DriverIsMesa(VkDriverId driver_id)
|
||||
|
Reference in New Issue
Block a user